
<!-- vor alten Browsern verstecken --

/* Uhrzeit und Datum in der Statuszeile */

var timerID = null;

var timerRunning = false;

// Called by both onLoad in BODY tag, and Resume button.

function startclock () 

   {

   // Make sure the clock is stopped

   stopclock();

   time();

   }

// Kills clock.

function stopclock ()

   {

   if(timerRunning)

      clearTimeout(timerID);

   timerRunning = false;

   }

function time ()

   {

   var now = new Date();

   var yr = now.getYear();
if (yr < 2000) yr +=1900
   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";

   // String to display current date.

   var DayDateTime=(" "

       + Day

       + "   "

       + dayNr

       + ". "

       + Month

       + " "

       + yr

       + "   "

       + hours

       + minutes

       + seconds

        );

   // Displays Day-Date-Time on the staus bar.

   window.status=DayDateTime;

   timerID = setTimeout("time()",1000);

   timerRunning = true;

   }

// Stops clock and clears status bar.

function clearStatus()

   {

   if(timerRunning)

      clearTimeout(timerID);

   timerRunning = false;

   window.status=" ";   

   }

// -- End Hiding Here -->

