var clock = '';

function showClock() {
        now = new Date();
       
        // date
        day = now.getDate();
        month = now.getMonth() + 1;
        
		year = now.getFullYear();
        clock = ((day < 10) ? "0" : "") + day;
        clock += ((month < 10) ? ".0" : ".") + month;
        clock += "." + year;
       
       	clock += ' | ';
        // time
        hours = now.getHours();
        minutes = now.getMinutes();
        seconds = now.getSeconds();
        
        clock += hours;
        clock += ((minutes < 10) ? ":0" : ":") + minutes;
        clock += ((seconds < 10) ? ":0" : ":") + seconds;
 		
		document.getElementById("clock").innerHTML = clock;

        setTimeout("showClock()", 1000);
}