var sec = 30;   // set the seconds
var min = 02;   // set the minutes
var hours = 01;

function countDown() {

if( !(document.getElementById( "theTime")) ){
		return;
}

  sec--;

  if (sec == -01) {
    sec = 59;
    min = min - 1;
  }

  if (min == -01) {
    min = 59;
    hours--;
  }
  

time = (hours<=9 ? "0" + hours : hours) + ":" + (min<=9 ? "0" + min : min) + ":" + (sec<=9 ? "0" + sec : sec);

if (document.getElementById)
{ 
	document.getElementById( "theTime" ).innerHTML = time; 
}

SD=window.setTimeout("countDown();", 1000);

if (hours == 0 && min == 0 && sec == 0) { window.clearTimeout(SD); }

}



