 var timer=null;
 var timerrun=false;
 function stoptime() {
 	if(timerrun)
 	clearTimeout(timer);
 	timerrun=false;
 }
 function starttime() {
 	stoptime();
 	showtime();
 }
 function showtime() {
  var all=new Date();
  day = all.getDate();
  month = all.getMonth() + 1;
  year = all.getYear();
  if (year<2000){
   year=year+1900;
  }
  if (day < 10) {
   day = "0" + day;
  }
  if (month <10) {
   month = "0" + month;
  }
  var hours=all.getHours();
  var minutes=all.getMinutes();
  var seconds=all.getSeconds();
  var timevalue=year + ":" + month + ":" + day + " - "
  timevalue+=" " + hours
  timevalue += ((minutes<10) ? ":0" : ":") + minutes
  timevalue += ((seconds<10) ? ":0" : ":") + seconds
  document.clock.next.value=timevalue;
  timer=setTimeout('showtime()',1000);
  timerrun=true;
 }
