<!--
function server_uptime(boot, rekord)
{
	var dif  = boot;
	var rdif = rekord;

	var ta = Math.floor(dif / 86400);
	dif = dif - (ta * 86400);
	var st = Math.floor(dif / 3600);
	dif = dif - (st * 3600);
	var mi = Math.floor(dif / 60);
	dif = dif - (mi * 60);
	var se = dif;

	document.getElementById('current').childNodes[0].nodeValue = ((ta < 10) ? "0" : "")+ta;
	document.getElementById('current').childNodes[2].nodeValue = ((st < 10) ? " 0" : " ")+st;
	document.getElementById('current').childNodes[4].nodeValue = ((mi < 10) ? " 0" : " ")+mi;
	document.getElementById('current').childNodes[6].nodeValue = ((se < 10) ? " 0" : " ")+se;

	var rtag = Math.floor(rdif / 86400);
	rdif = rdif - (rtag * 86400);
	var rstd = Math.floor(rdif / 3600);
	rdif = rdif - (rstd * 3600);
	var rmin = Math.floor(rdif / 60);
	rdif = rdif - (rmin * 60);
	var rsek = rdif;

	document.getElementById('rek').childNodes[0].nodeValue = ((rtag < 10) ? "0" : "")+rtag;
	document.getElementById('rek').childNodes[2].nodeValue = ((rstd < 10) ? " 0" : " ")+rstd;
	document.getElementById('rek').childNodes[4].nodeValue = ((rmin < 10) ? " 0" : " ")+rmin;
	document.getElementById('rek').childNodes[6].nodeValue = ((rsek < 10) ? " 0" : " ")+rsek;
	
	if (rekord <= boot)
	{
  	rekord++;
	}

	boot++;
	setTimeout('server_uptime(' + boot + ', ' + rekord + ');', 1000);
}

function timedate()
{
	var TString, DString;
	var now = new Date();
	var H = now.getHours();
	var M = now.getMinutes();
	var S = now.getSeconds();
	TString =((H < 10) ? "0" : "")+H;
	TString+=((M < 10) ? ":0" : ":")+M;
	TString+=((S < 10) ? ":0" : ":")+S;
	var day = now.getDate();
	var month = now.getMonth()+1;
	var year = now.getYear();
	if (year<=1900) year = year + 1900;
	DString =((day < 10) ? "0" : "")+ day;
	DString+=((month<10) ? ".0" : ".") + month;
	DString+=((year < 10) ? ".0" : ".") + year;
	document.getElementById('Time').childNodes[0].nodeValue = TString;
	document.getElementById('Date').childNodes[0].nodeValue = DString;
	Timer=setTimeout("timedate()", 1000);
}

/* Login-Daten übermitteln */
function login() {
	document.login_kaiserauer.submit ();
}

/* Login-Formular löschen */
function reset_login() {
	document.login_kaiserauer.reset ();
}

/* Navigation Seite zurück */
function form_back() {
	history.back(-1);
	return true;
}

/* Bookmark übermitteln */
function send_bookmark() {
	document.bookmark.submit ();
}

/* Bookmark-Formular löschen */
function reset_bookmark() {
	document.bookmark.reset ();
}

/* Kontaktformular Email senden */
function send_email() {
	document.email.submit ();
}

/* Kontaktformular Email löschen */
function reset_email () {
	document.email.reset ();
}

/* Auswahl Jahr Email-Statistik */
function stat_year() {
	document.emailstats.submit ();
}

/* Bilderkommentar senden */
function send_piccomment() {
	document.piccomment.submit ();
}

/* Formular Bilderkommentar löschen */
function reset_piccomment () {
	document.piccomment.reset ();
}

/* Überprüfung auf Enter-Zeichen */
function check_key(source) {
	if (null!=window.event) // IE
		w = window.event;
	else if(null!=source) // netscape/mozilla
		w = source;
	else
		w = null; // schade

	if (null!=w) {
		if (13==w.keyCode) {
			document.login_kaiserauer.submit ();
		return false;
		}
	}
	return true;
}
//-->
