function clock()
{
	var time = new Date(); 
	day = time.getDate();
	month = time.getMonth() + 1;
	year = time.getYear();
		
	hours = time.getHours();
	minutes = time.getMinutes();
	seconds = time.getSeconds();
	
	if (year < 2000)
	{
		year += 1900;	
	}
	
	if (day < 9)
	{
		day = "0"+day;
	}

	if (month < 9)
	{
		month = "0"+month;
	}

	if (hours < 10)
	{
		hours = "0"+hours;
	}

	if (minutes < 10)
	{
		minutes = "0"+minutes;
	}

	if (seconds < 10)
	{
		seconds = "0"+seconds;
	}

	document.getElementById("clock").innerHTML = day+"/"+month+"/"+year+" "+hours+":"+minutes+":"+seconds;

	seconds++;

	setTimeout('clock()', 1000);
}
