document.seconds =-1;

function stopwatch() {

    if(document.seconds == -1)
	document.seconds =5;

    if (document.seconds > 0)  {
    sec = document.seconds;

    document.getElementById('stopwatch').innerHTML = String(sec) + ' seconds '
    sec--

    document.seconds = sec
    setTimeout("stopwatch();", 1000);
   }
  else {
   document.getElementById('stopwatch').innerHTML = '0' + ' seconds ';

   if(document.redirectto )
   self.location.href=document.redirectto
 }
}
