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

var clockID = 0;
var h = 0;
var m = 0;
var s = 0;

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

   var tDate = new Date();

   h = tDate.getHours(); if (h < 10) h = "0" + h;
   m = tDate.getMinutes(); if (m < 10) m = "0" + m;
 //  s = tDate.getSeconds(); if (s < 10) s = "0" + s;
 //  document.getElementById('Clock').innerHTML = h + ":" + m + ":" + s;
   document.getElementById('Clock').innerHTML = h + ":" + m;
   
   clockID = setTimeout("UpdateClock()", 2000);
}
function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

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