function funclock() 
{
	var runTime = new Date();
	var hours = runTime.getHours();
	var minutes = runTime.getMinutes();
	var seconds = runTime.getSeconds();
	if(document.getElementById('clock'))
	{	
		if (hours == 0) hours = 12;
		if (minutes <= 9) minutes = "0" + minutes;
		if (seconds <= 9) seconds = "0" + seconds;
		movingtime = hours + ":" + minutes + ":" + seconds;
		document.getElementById('clock').innerHTML = movingtime;
		setTimeout("funclock()", 1000)
	}
}