// JavaScript Document



	// a function to dynamically display the local time

	function tick()

	{

		// create a new Date object

		var now = new Date();

		

		// extract the current hours, minutes and seconds

		var hh = now.getHours();

		var mn = now.getMinutes();

		var ss = now.getSeconds();

		

		// ensure each component has two digits

		if( hh <= 9 ) hh = "0" + hh;

		if( mn <= 9 ) mn = "0" + mn;

		if( ss <= 9 ) ss = "0" + ss;

		

		// assign the current time string to the div

		window.document.getElementById("Clock").innerHTML = hh + ": " +mn+ ": " + ss;

		

		// set the interval at which to call this function

		window.setTimeout( "tick()", 1000 );

	}

	// set the clock when the page has loaded

	window.onload=tick;