
<!-- Anfrage
function checkForm_anfrage() {
	var error = false;
	var error_message = "Folgende Fehler sind aufgetreten:\n";
                      
	if (document.form.vorname.value == '') {
		error = true;
		error_message += "- kein Vorname\n";
	}
	if (document.form.nachname.value == '') {
		error = true;
		error_message += "- kein Nachname\n";
	}
	if (document.form.strasse.value == '') {
		error = true;
		error_message += "- keine Straße\n";
	}
	if (document.form.hausnummer.value == '') {
		error = true;
		error_message += "- keine Hausnummer\n";
	}
	if (document.form.plz.value == '') {
		error = true;
		error_message += "- keine Postleitzahl\n";
	}
	if (document.form.ort.value == '') {
		error = true;
		error_message += "- keine Ort\n";
	}
	if (document.form.telefonnummer.value == '') {
		error = true;
		error_message += "- keine Telefonnummer\n";
	}
	if (document.form.email.value == '') {
		error = true;
		error_message += "- keine E-Mailadresse\n";
	}
	
	
	
	
	/* Ist irgendwo ein Fehler aufgetreten ? */
	if (error) {
		error_message += "\nBitte ergänzen Sie Ihre Angaben!";
			alert(error_message);
		return false; //Formular wird nicht abgeschickt.
		} else {
		return true;  //Formular wird abgeschickt.
		}
}


// Show Hide Layer
	function aLs(layerID){
		var isIE = false;
		var isOther = false;
		var isNS4 = false;
		var isNS6 = false;
		if(document.getElementById){
			if(!document.all){
				isNS6=true;
			}
			if(document.all){
				isIE=true;
			}
		}else{
			if(document.layers){
				isNS4=true;
			}else{
				isOther=true;
			}
		}
		var returnLayer;
			if(isIE){
				returnLayer = eval("document.all." + layerID + ".style");
			}
			if(isNS6){
				returnLayer = eval("document.getElementById('" + layerID + "').style");
			}
			if(isNS4){
				returnLayer = eval("document." + layerID);
			}
			if(isOther){
				returnLayer = "null";
				alert("-[Error]-\nDue to your browser you will probably not\nbe able to view all of the following page\nas it was designed to be viewed. We regret\nthis error sincerely.");
			}
		return returnLayer;
	}
	function HideShow(ID){
		/*if((aLs(ID).visibility == "visible") || (aLs(ID).visibility == "")){
			aLs(ID).visibility = "hidden";
			aLs(ID).position = "absolute";
			SetCookie(ID,'closed',null,'/');
		}else if(aLs(ID).visibility == "hidden"){
			aLs(ID).visibility = "visible";
			aLs(ID).position = "relative";
			SetCookie(ID,'opened',null,'/');
		}*/
		
		if((aLs(ID).display == "block") || (aLs(ID).display == "")){
			aLs(ID).display = "none";
			aLs(ID).visibility = "hidden";
			SetCookie(ID,'closed',null,'/');
			//getDocHeight('afterPostLayer');
		}else if(aLs(ID).display == "none"){
			aLs(ID).display = "block";
			aLs(ID).visibility = "visible";
			SetCookie(ID,'opened',null,'/');
			//getDocHeight('afterPostLayer');
		}
		
	}
	function HideShowAbsolute(ID){
		if((aLs(ID).visibility == "visible") || (aLs(ID).visibility == "")){
			aLs(ID).visibility = "hidden";
			aLs(ID).position = "absolute";
		}else if(aLs(ID).visibility == "hidden"){
			aLs(ID).visibility = "visible";
			aLs(ID).position = "absolute";
		}
	}


