
<!--
var clockID = 0;

function UpdateClock() {
	if(clockID) {
		clearTimeout(clockID);
		clockID = 0;
	}
	
	var tDate = new Date();
	
	var current_time = document.getElementById('clock');
	current_time.innerHTML = "" 
	                                   + IfZero(check24(tDate.getHours())) + ":" 
	                                   + IfZero(tDate.getMinutes());	// + " GMT";
	
	clockID = setTimeout("UpdateClock()", 3600);
}

function StartClock() {
	clockID = setTimeout("UpdateClock()", 500);
}

function KillClock() {
	if(clockID) {
		clearTimeout(clockID);
		clockID = 0;
	}
}

function IfZero(num) {
	return ((num <= 9) ? ("0" + num) : num);
}

function check24(hour) {
	return (hour >= 24) ? hour - 24 : hour;
}

//-->

