<!--

var timerID = null;
var timerRunning = false;

function startclock () {
   stopclock();
   time();
}

function stopclock () {
   if(timerRunning)
      clearTimeout(timerID);
   timerRunning = false;
}

function time () {

   var now = new Date();
   var yr = now.getYear();
   var mName = now.getMonth() + 1;
   var dName = now.getDay() + 1;
   var dayNr = now.getDate();
   var hours = now.getHours();
   var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
   var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();

   if(dName==1) Day = "Sonntag";
   if(dName==2) Day = "Montag";
   if(dName==3) Day = "Dienstag";
   if(dName==4) Day = "Mittwoch";
   if(dName==5) Day = "Donnerstag";
   if(dName==6) Day = "Freitag";
   if(dName==7) Day = "Samstag";
   if(mName==1) Month="Januar";
   if(mName==2) Month="Februar";
   if(mName==3) Month="März";
   if(mName==4) Month="April";
   if(mName==5) Month="Mai";
   if(mName==6) Month="Juni";
   if(mName==7) Month="Juli";
   if(mName==8) Month="August";
   if(mName==9) Month="September";
   if(mName==10) Month="Oktober";
   if(mName==11) Month="November";
   if(mName==12) Month="Dezember";

   var DayDateTime=(" "
       + Day
       + "   "
       + dayNr
       + ". "
       + Month
       + " "
       + " "
       + yr
       + "   "
       + hours
       + minutes
       + seconds

        );
   window.status=DayDateTime;
   timerID = setTimeout("time()",1000);
   timerRunning = true;
}

function clearStatus() {
   if(timerRunning)
      clearTimeout(timerID);
   timerRunning = false;
   window.status=" ";   

   }
startclock()
//-->
