// clock.js - ByZA.it
// 05/06/2006 21.21
				
var clockTime=0;

function lz(x) {
	return (x >= 10 || x < 0 ? "" : "0") + x;
}

function showtime() {
	cl=document.getElementById('clock');
	if(cl && !clockTime) clockTime=parseInt(cl.firstChild.nodeValue)*1000;
	date=new Date();
	date.setTime(clockTime);
	document.getElementById('clock').firstChild.nodeValue=
			 lz(date.getDate()) + '/' +
			 lz(date.getMonth()+1) + '/' +
			 lz(date.getYear()%100) + ' ' +
			 date.toLocaleTimeString();				
	clockTime+=1000;		
}

setInterval("showtime()", 1000);
setTimeout("showtime();",10);
