

	function dotime()
	{
		//alert(Date.getUTCHours);
		setInterval("updatetime()", 1000);
	}
	
	function updatetime()
	{
		//alert(document.getElementById("datetime1").innerHTML);
		document.getElementById("datetime1").innerHTML = "<p>" + timenow() + "</p>";
	}
	
	function timenow()
	{
		var now = new Date();
		//return now.format("hh:mm:ss");
		return ((now.getHours() < 10)?"0":"") + now.getHours() + ":" + ((now.getMinutes() < 10)?"0":"") + now.getMinutes() + ":" + ((now.getSeconds() < 10)?"0":"") + now.getSeconds();
	}
	
	if (window.attachEvent) 
	{
	 window.attachEvent("onload", dotime);
	} 
	else 
	{
	 window.addEventListener("DOMContentLoaded", dotime, false);
	}
