<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var clockID = 0;

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   var tDate = new Date();

   document.getElementById('clock').innerHTML = "" 
                                   + ftime(tDate.getHours()) + ":" 
                                   + ftime(tDate.getMinutes()) + ":" 
                                   + ftime(tDate.getSeconds());
   
   clockID = setTimeout("UpdateClock()", 1000);
}

function ftime(num) {
	num = num + '';
	if(num.length == 1) {
		num = '0' + num;
	}
	return num;
}

function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

function KillClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }
}

//-->
