function chkkontaktformular() {
	if (document.kontaktformular.name.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.kontaktformular.name.focus();
		return(false);
	} else if (document.kontaktformular.mail.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.kontaktformular.mail.focus();
		return(false);
	} else if ((document.kontaktformular.mail.value.indexOf("@") == -1) || (document.kontaktformular.mail.value.indexOf(".") == -1))  {
		alert("Keine gültige E-Mail-Adresse!");
		document.kontaktformular.mail.focus();
		return(false);
	} else if (document.kontaktformular.nachricht.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.kontaktformular.nachricht.focus();
		return(false);
	} else if ((document.kontaktformular.plz.value.length<5) && (document.kontaktformular.plz.value.length>0)) {
	  	alert("Bitte geben Sie eine korrekte Postleitzahl an!");
	  	document.kontaktformular.plz.focus();
		return(false);
	} else {
		document.kontaktformular.submit();
	}
}


function chkbestellungformular() {
	if (document.bestellformular.name.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.name.focus();
		return(false);
	} else if (document.bestellformular.fachgebiet.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.fachgebiet.focus();
		return(false);
	} else if (document.bestellformular.strasse.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.strasse.focus();
		return(false);
	} else if (document.bestellformular.hausnummer.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.hausnummer.focus();
		return(false);
	} else if (document.bestellformular.postleitzahl.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.postleitzahl.focus();
		return(false);
	} else if (document.bestellformular.postleitzahl.value.length<5) {
	  	alert("Bitte geben Sie eine korrekte Postleitzahl an!");
	  	document.bestellformular.postleitzahl.focus();
		return(false);
	} else if (document.bestellformular.ort.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.ort.focus();
		return(false);
	} else if (document.bestellformular.telefon.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.telefon.focus();
		return(false);
	} else if (document.bestellformular.mail.value!="") {
		if ((document.bestellformular.mail.value.indexOf("@") == -1) || (document.bestellformular.mail.value.indexOf(".") == -1))  {
			alert("Keine gültige E-Mail-Adresse!");
			document.bestellformular.mail.focus();
			return(false);
		}
	} else if (document.bestellformular.nachricht.value=="") {
		alert("Bitte füllen Sie alle notwendigen Felder aus!");
		document.bestellformular.mail.focus();
		return(false);
	} else {
		document.bestellformular.submit();
	}
}
