function chkFormular () {

 var chkZ = 1;
    for(i=0;i<document.Preis.plz.value.length;++i)
      if(document.Preis.plz.value.charAt(i) < "0"
      || document.Preis.plz.value.charAt(i) > "9")
        chkZ = -1;
    if(chkZ == -1)
    {
      alert("Ungültige Postleitzahl!");
      document.Preis.plz.focus();
      return false;
     }
 if(document.Preis.plz.value.length != 5)
     {
    alert(document.Preis.plz.value + " ist keine fünfstellige PLZ.")
    return false;
 }
  
}


function chkFormularKontakt () {

if (document.Formular.nachName.value == "") {
    alert("Bitte Ihren Familiennamen eingeben!");
    document.Formular.nachName.focus();
    return false;
  }
  
    if (document.Formular.vorName.value == "") {
    alert("Bitte Ihren Vornamen eingeben!");
    document.Formular.vorName.focus();
    return false;
  }
    if (document.Formular.Telefon.value == "") {
    alert("Bitte Ihr Telefon eingeben!");
    document.Formular.Telefon.focus();
    return false;
  }
    if (document.Formular.strasse.value == "") {
    alert("Bitte Ihre Strasse eingeben!");
    document.Formular.strasse.focus();
    return false;
  }    
    if (document.Formular.plz.value == "") {
    alert("Bitte Ihre PLZ eingeben!");
    document.Formular.plz.focus();
    return false;
  }    
    if (document.Formular.ort.value == "") {
    alert("Bitte Ihren Ort eingeben!");
    document.Formular.ort.focus();
    return false;
  }  
  
  if (document.Formular.Email.value == "") {
    alert("Bitte Ihre E-Mail-Adresse eingeben!");
    document.Formular.Email.focus();
    return false;
  }
  if (document.Formular.Email.value.indexOf("@") == -1) {
    alert("Keine oder falsche E-Mail-Adresse!");
    document.Formular.Email.focus();
    return false;
  }

  
  //:: Anfang Prüfung Code
var summant1 = document.Formular.summant1.value * 1;
var summant2 = document.Formular.summant2.value * 1;
  
var Ergebnis = summant1 + summant2;
var Eintrag = document.Formular.summ.value;

if(Ergebnis != Eintrag){
alert("Bitte prüfen Sie die kleine Rechenaufgabe!");
document.getElementById("summ").value = "";
document.getElementById("summ").focus();

return false;
}
//:: ende Prüfung Code

   if (document.Formular.datenschutz.checked == false) {
    alert("Bitte bestätigen Sie den Datenschutzhinweis!");
    document.Formular.datenschutz.focus();
    return false;
  }
  
}
