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

var timerID = 0;
var tStart  = null;

function UpdateTimer() {
   if(timerID) {
      clearTimeout(timerID);
      clockID  = 0;
   }

   if(!tStart)
      tStart   = new Date();

   var   tDate = new Date();
   var   tDiff = tDate.getTime() - tStart.getTime();

   tDate.setTime(tDiff);

   myTime = + tDate.getMinutes() + ":"
            + tDate.getSeconds();

   document.display.clock.value = ""
                                   + tDate.getMinutes() + ":"
                                   + tDate.getSeconds();

   timerID = setTimeout("UpdateTimer()", 1000);
}

function StartTimer() {
   tStart   = new Date();

   document.display.clock.value = "0:0";

   timerID  = setTimeout("UpdateTimer()", 1000);
}

function StopTimer() {
   if(timerID) {
      clearTimeout(timerID);
      timerID  = 0;
   }

   tStart = null;
}
