var timer=null;
var cent21=new Date (2003,0,1,0,0,0);
var monat=new Array(13);
monat[1]="Januar";
monat[2]="Februar";
monat[3]="M&auml;rz";
monat[4]="April";
monat[5]="Mai";
monat[6]="Juni";
monat[7]="Juli";
monat[8]="August";
monat[9]="September";
monat[10]="Oktober";
monat[11]="November";
monat[12]="Dezember";

var time=new Date();
var lmonat=monat[time.getMonth() + 1];
var tag=time.getDate();
var days=time.getDate();
var jahr=time.getYear();

// y2k cause:
// if(jahr < 999) jahr+=1900;

var month = time.getMonth()+1;
//Monat als Name geschrieben:
var monthname=monat[month];
	
	
function showtime()
{
    var time = new Date();
    var hours = time.getHours();
    var minutes = time.getMinutes();
    var seconds = time.getSeconds();
	var days = time.getDate();
    var timeValue = ((hours >= 10) ? hours : " " + hours)
    timeValue  += ((minutes < 10) ? ":0" : ":") + minutes
    timeValue  += ((seconds < 10) ? ":0" : ":") + seconds
    document.clock.time.value = timeValue
    var days = ((time.getTime () - cent21.getTime ()) / 86400000);
    //document.clock.days.value = Math.ceil (days);
    timer = setTimeout("showtime()",1000)
}

function startclock()
{
    timer = setTimeout("showtime()",1000)
}

//document.write(days + ". " + monthname + " " + jahr);
//im body onload="startclock() einfuegen

/*im html-teil als textstelle einfuegen. z.B.:
<script>
document.write('<form name="clock"><font face="arial" size="2" color="#000033">' + tag + '. ' + lmonat + ' ' + '&#180;0' + jahr);
document.write('<br><input type="text" size="8" name="time" value="00:00:00"  readonly></form>');

</script>
*/
