function clickIE() {if (document.all) {TheTime();return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {TheTime();return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

dayName = new Array ("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag")
dayName2 = new Array ("So","Mo","Di","Mi","Do","Fr","Sa")
	monName = new Array ("Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember")
	now = new Date

	function showMilitaryTime() {
			return true
	}

	function showTheHours(theHour) {
		if (showMilitaryTime() || (theHour > 0 && theHour < 13)) {
			return (theHour)
		}
		if (theHour == 0) {
			return (12)
		}
		return (theHour-12)
	}

	function showZeroFilled(inValue) {
		if (inValue > 9) {
			return ":" + inValue
		}
		return ":0" + inValue
	}

	function showAmPm() {
		if (showMilitaryTime()) {
			return ("")
		}
		if (now.getHours() < 12) {
			return (" am")
		}
		return (" pm")
	}

	function showTheTime() {
		now = new Date

		document.theForm.showTime.value = " " + dayName[now.getDay()] + ", " + now.getDate() + ". " + monName[now.getMonth()] + " " + now.getFullYear() + " * " + showTheHours(now.getHours()) +  showZeroFilled(now.getMinutes()) + " Uhr"
		status = "Uhrzeit " + showTheHours(now.getHours()) +  showZeroFilled(now.getMinutes()) + showZeroFilled(now.getSeconds())
		setTimeout("showTheTime()",1000)
	}

	function TheTime() {
		now = new Date;
		var meldung;
		meldung = dayName[now.getDay()] + ", " + now.getDate() + ". " + monName[now.getMonth()] + " " + now.getFullYear() + " * " + showTheHours(now.getHours()) +  showZeroFilled(now.getMinutes()) + " Uhr";
alert(meldung);
	}

