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

var clockID = 0;
var interval = 60;

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

  interval -= 1;
  if (interval < 0) { interval = 60; }
//   var tDate = new Date();

   document.theClock.theTime.value = "Next refresh in " + interval + " seconds.";
//                                   + tDate.getHours() + ":" 
  //                                 + tDate.getMinutes() + ":" 
    //                               + tDate.getSeconds();
   
   clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

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

