// javascript DHMTL - funktionen
// author: alexander stier, cuti & stier gbr
// datum: 09.08.2004

function selectMenu(adresse) {
	var splitted = new Array();
	splitted = adresse.split("/");
	trash = splitted.pop();
	selected = splitted.pop();
	if (document.getElementById(selected)) {
		document.getElementById(selected).className = "buttonOn";
	}
}

function rollover(Bild) {
	with (document.images[Bild])
	src = (src.indexOf("0") != -1) ? src.replace(/0/, "1") : src.replace(/1/, "0");
}

function openPopUp(url,name,top,left,width,height,scrollbars,toolbar,status,location) {
	thirdParameter = 'top=' + top + ',left=' + left + ',width=' + width + ',height=' + height + ',scrollbars=' + scrollbars + ',toolbar=' + toolbar + ',status=' + status + ',location=' + location + ',resizable=1,menubar=no';
	openpUpObj = window.open(url,name,thirdParameter);
	openpUpObj.focus();
}

function validateForm(form) {
	if (form.inh4.value == "")
	{ alert("Bitte geben Sie Ihren Namen an !"); form.inh4.focus(); return false; }

	if (form.inh11.value == "")
	{ alert("Bitte geben Sie Ihre e-mail-Adresse an !"); form.inh11.focus(); return false; }
	if (form.inh11.value.indexOf('@', 0) == -1 ||	form.inh11.value.indexOf('.', 0) == -1)
	{ alert("Bitte geben Sie ein gültige e-mail-Adresse an !"); form.inh11.focus(); return false; }

	return true;
}
