var now = new Date();
function datum(){
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="01";
if(mName==2) Month="02";
if(mName==3) Month="03";
if(mName==4) Month="04";
if(mName==5) Month="05";
if(mName==6) Month="06";
if(mName==7) Month="07";
if(mName==8) Month="08";
if(mName==9) Month="09";
if(mName==10) Month="10";
if(mName==11) Month="11";
if(mName==12) Month="12";
// String to display current date.
var todaysDate =(" "
+ Day
+ ", "
+ dayNr
+ "."
+ Month
+ "."
+ yr
+ "<BR>");
document.open();
document.write(""+todaysDate+"");
document.close();
}

// CREDITS:
// Inline clock: fits anywhere into any text
// by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com
// info@24fun.com
// 7/5/2001

// IMPORTANT: 
// If you add this script to a script-library or a script-archive 
// you have to insert a link to http://www.24fun.com 
// right into the webpage where the script will be displayed.

// CONFIGURATION:
// Go to http://www.24fun.com, open category 'date' and 
// download the ZIP-file of this script containing
// the script-file with step-by-step instructions for easy configuration

var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds


	
function writeclock() {
	i_clock++
	if (document.all || document.getElementById || document.layers) {
		clockid[i_clock]="clock"+i_clock;
		document.open();
		document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>");
		document.write(thistime+"</span>");
		document.close();
	}
}

function clockon() {
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	thistime = hours+":"+minutes
		
	if (document.all) {
		for (i=0;i<=clockid.length-1;i++) {
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	
	if (document.getElementById) {
		for (i=0;i<=clockid.length-1;i++) {
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}
window.onload=clockon
