// JavaScript Document


function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}


function StartTheTimer()
{
        self.status = secs
        secs = secs + 1
        timerRunning = true
		if(secs==60){
			secs=0;
			minutos++;
		}
		if(minutos==60){
			minutos=0;
			horas++;
			h_7++;
		}
		if(h_7>=24){h_7=h_7-24;}
        timerID = self.setTimeout("StartTheTimer()", delay)
		var eleOld=document.getElementById('tiempo');


		real_h=h_7;			 
		if (secs<10){
			document.getElementById('myAnchor1').innerHTML=''+real_h+":"+minutos;
  		    if (minutos<10){
			document.getElementById('myAnchor1').innerHTML=''+real_h+":0"+minutos;
   		        if (real_h<10){
			      document.getElementById('myAnchor1').innerHTML='0'+real_h+":0"+minutos;   	
   		        }
  		    }
 		    if (real_h<10 && minutos>10){
			      document.getElementById('myAnchor1').innerHTML='0'+real_h+":"+minutos;   	
   		    } else if(real_h<10 && minutos<10){document.getElementById('myAnchor1').innerHTML='0'+real_h+":0"+minutos;  }
                }
		else{
			document.getElementById('myAnchor1').innerHTML=''+real_h+":"+minutos;
  		    if (minutos<10){
			document.getElementById('myAnchor1').innerHTML=''+real_h+":0"+minutos;
   		        if (real_h<10){
			      document.getElementById('myAnchor1').innerHTML='0'+real_h+":0"+minutos;   	
   		        }
  		    }
 		    if (real_h<10 && minutos>10){
			      document.getElementById('myAnchor1').innerHTML='0'+real_h+":"+minutos;   	
   		    } else if(real_h<10 && minutos<10){document.getElementById('myAnchor1').innerHTML='0'+real_h+":0"+minutos;  }
                }
			
}

//-->