<!--
var clockID = 0;

function UpdateClock()
{
	if(clockID)
	{
		clearTimeout(clockID);
		clockID  = 0;
	}

	var tDate = new Date();
	var hours = "" + tDate.getHours();
	var minutes = "" + tDate.getMinutes();
	var seconds = "" + tDate.getSeconds();
	
	if (hours.length != 2)
	{
		hours = "0" + hours;
	}
	if (minutes.length != 2)
	{
		minutes = "0" + minutes;
	}
	if (seconds.length != 2)
	{
		seconds = "0" + seconds;
	}
	
	document.getElementById('currentTime').innerHTML = "" 
																									+ hours + ":" 
																									+ minutes + ":" 
																									+ seconds;
	
	clockID = setTimeout("UpdateClock()", 1000);
}

function StartClock()
{
	clockID = setTimeout("UpdateClock()", 500);
}

function KillClock()
{
	if(clockID)
	{
		clearTimeout(clockID);
		clockID  = 0;
	}
}
//-->