// Live Date Script - modified by Wagner, Michael 2009-4-11
// © Dynamic Drive (www.dynamicdrive.com)

var dayarray =		new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
var montharray =	new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");

function getthedate()
{
	var mydate	= new Date();
	var year	= mydate.getYear();
	if (year < 1000) { year += 1900; }

	var day		= mydate.getDay();
	var month	= mydate.getMonth();
	var daym	= mydate.getDate();
	if (daym < 10) { daym = "0" + daym; }
	var hours	= mydate.getHours();
	var minutes	= mydate.getMinutes();
	var seconds	= mydate.getSeconds();
	if (hours == 0) { hours = 12; }
	if (minutes <= 9) { minutes = "0" + minutes; }
	if (seconds <= 9) { seconds = "0" + seconds; }
	var cdate = dayarray[day] + ", " + daym + ". " + montharray[month] + " " + year + " " + hours + ":" + minutes + ":" + seconds + " Uhr";
//alert(cdate);
	if (document.all) {
		document.all.akttime.innerHTML = cdate;
	} else {
		if (document.getElementById) {
			document.getElementById("akttime").innerHTML = cdate;
		} else {
			document.write(cdate);
		}
	}
}

function goforit()
{
	if (document.all||document.getElementById);
	getthedate();
	setInterval("getthedate()",1000);
}

//window.onload=function(){ getthedate(); goforit(); };
