Hi guys! I'm trying here to do a script for multiple timers with controls.

The URL is here: http://tinyurl.com/4cor8m

The code is here:

Code JavaScript:
//var timerID = 0;
var cont=0;
 
arr_timers = new Array();
 
function UpdateTimer(id, timerid) { 
   if(timerid) { 
      clearTimeout(arr_timers[timerid]['timer']); 
      clockID  = 0; 
   } 
   if(!arr_timers[timerid]['tstart']) arr_timers[timerid]['tstart'] = new Date();
   var arr_timers[timerid]['tdate'] = new Date();
   var arr_timers[timerid]['tdiff'] = arr_timers[timerid]['tdate'].getTime() - arr_timers[timerid]['tstart'].getTime();
   arr_timers[timerid]['tdate'].setTime(arr_timers[timerid]['tdiff']);
   document.getElementById(id).value = ""  
                                   + tDate1.getMinutes() + ":"  
                                   + tDate1.getSeconds(); 
   timerID1 = setTimeout(function(){ UpdateTimer(id, timerid) }, 1000); 
   messages(timerid, arr_timers[timerid]['tdate'].getSeconds()); 
} 
 
function Start(id, timerid) {
   document.getElementById(id).value = "00:00";
   setTimeout(function(){ UpdateTimer(id, timerid) }, 1000);
}
 
function Stop() {
   if(timerID) {
      clearTimeout(timerID);
      timerID  = 0;
   }
   tStart = null;
}
 
function Reset() {
   document.theTimer.theTime.value = "00:00";
   document.theTimer.alert.value = "";
}
 
 
function message(time) {
  if(time == document.theTimer.settime.value){
   cont++;
   document.theTimer.alert.value = "Alert pet  at: " + time + ". Message number: " + cont;
    tStart = null;
   document.theTimer.theTime.value = "00:00";
   }
}
 
 
//-->

Anyone can see what is the problem here?

Thanks!