// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var clockID = 0;

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

   var tDate = new Date();

   //h = tDate.getHours();
   
   //h = tDate.getUTCHours() + 3
   //if(h >= 21)
   //h = h - 24;
   
   if(hour < 10){
	hour = "0" + hour;
   }
   
   m = tDate.getMinutes();
   if(m < 10){
	m = "0" + m;
   }

   document.theClock.theTime.value = ""
                                   + hour + ":"
                                   + m;

   clockID = setTimeout("UpdateClock(" + hour + ")", 1000);
}
function StartClock(hour) {
   clockID = setTimeout("UpdateClock(" + hour + ")", 0);
}
