function ClearForm(form) {
	if (form.value == form.defaultValue)
	form.value = "";
}

function OpenWindow(url, breite, hoehe) {
	window.open(url, "Image", "width=" + breite + ", height=" + hoehe + ", status=no, menubar=no, resizable=no, scrollbars=no, toolbar=no");
}

function OpenWindowScrollbar(url, breite, hoehe) {
	window.open(url, "Image", "width=" + breite + ", height=" + hoehe + ", status=no, menubar=no, resizable=no, scrollbars=yes, toolbar=no");
}

function displayDiv(divid) {
	d = document;
	if (d.getElementById(divid)) {
		status = d.getElementById(divid).style.display;
		if (status == 'block') {
			d.getElementById(divid).style.display = 'none';
		} else {
			d.getElementById(divid).style.display = 'block';
		}
	}
}

function displayDivStatus(divid, status) {
	d = document;
	if (d.getElementById(divid)) {
		d.getElementById(divid).style.display = status;
	}
}

function GetAlter(tag, monat, jahr, t2, m2, j2, returnform) {
	if (tag != 0 && monat != 0 && jahr != 0) {
		Month = m2;
		Day = t2;
		Year = j2;
		Hour = 0;
		Minute = 0;
		Second = 0;
		by = jahr;
		bm = monat;
		bd = tag;
		bh = 0;
		bmn = 0;
		bs = 0;
		BDate = Date.UTC(by,bm,bd,bh,bmn,bs);
		CDate = Date.UTC(Year,Month,Day,Hour,Minute,Second);
		Age = CDate-BDate;
		Jahre = parseInt(((((Age/1000)/60)/60)/24)/365.25,10);
		returnform.value = Jahre;
	}
}
