var now = new Date();

if (navigator.userAgent.indexOf ("MSIE") != -1) //IE
{
var yr = now.getYear();
}
else //netscape
{
var getyr = now.getYear();
var yr = getyr + 1900;
}
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
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 todaysDate =(" "
+ Day
+ ", "
+ dayNr
+ ". "
+ Month
+ " "
+ yr
+ " ");
document.open();

//uhr
var loaded = false;
if (document.layers)
  document.write(
  );
function Clock (offsetSec, style) {
  this.id = Clock.cnt;
  Clock.clocks[Clock.cnt++] = this;
  this.offsetSec = offsetSec || 0;
  this.writeHTML();
  this.startTimer();
}
function Clock_writeHTML () {
  var html = '';
  if (document.layers) {
    html += '<span';
    html += ' id="Clock' + this.id + '"';
    html += ' class="rewritable"';
    html += '>';
    html += '<span';
	html += 'class=white'
    html += '>';
    html += this.formatTime();
    html += '<\/span>';
    html += '<\/span>';
  }
  else {
    html += '<span';
    html += ' id="Clock' + this.id + '"';
	html += 'class=white'
    html += '>';
    html += this.formatTime();
    html += '<\/span>';
  }
  document.write(html);
}
Clock.prototype.writeHTML = Clock_writeHTML;
function Clock_formatTime () {
  var time = new Date();
  time.setTime(time.getTime() + this.offsetSec * 1000);
  var hours = time.getHours();
  var minutes = time.getMinutes();
  var seconds = time.getSeconds();
  var html = '';
  html += hours < 10 ? '0' + hours : hours;
  html += ':';
  html += minutes < 10 ? '0' + minutes : minutes;
  html += ':';
  html += seconds < 10 ? '0' + seconds : seconds;
  return html;
}
Clock.prototype.formatTime = Clock_formatTime;
function Clock_startTimer () {
  this.tid = setInterval('Clock.clocks[' + this.id + '].updateTime()', 
1000);
}
Clock.prototype.startTimer = Clock_startTimer;
function Clock_updateTime () {
  if (document.all)
    document.all['Clock' + this.id].innerHTML = this.formatTime();
  else if (document.getElementById)
    document.getElementById('Clock' + this.id).firstChild.nodeValue =
      this.formatTime();
  else if (document.layers && loaded) {
    var l = document['Clock' + this.id];
    if (!l.ol) {
      var ol = l.ol = new Layer(l.clip.width);
      ol.clip.height = l.clip.height;
      ol.left = l.pageX; ol.top = l.pageY;
      ol.visibility = 'show';
      l.visibility = 'hide';
    }
    var ol = l.ol;
    var html = '';
    html += '<span';
	html += 'class=text1'
    html += '>';
    html += this.formatTime();
    html += '<\/span>';
    ol.document.open();
    ol.document.write(html);
    ol.document.close();
  }
}
Clock.prototype.updateTime = Clock_updateTime;
Clock.cnt = 0;
Clock.clocks = new Array();
function init () {
  loaded = true;
} 
// JavaScript Document
