Daniel Trenzen: Zahlenbereich in indexOf definieren. Wie geht das?

Beitrag lesen

wenn es immernoch nicht geht dann poste mal DEIN quelltext abschnitt und die fehlermeldung

Hier mein Script in voller Länge:

<script type="text/javascript">
<!--
function chkFormular()
{
 if(document.Formular.name.value == "")  {
   alert("Bitte Ihren Namen eingeben!");
   document.Formular.name.focus();
   return false;
  }
 if(document.Formular.vorname.value == "") {
   alert("Bitte Ihren Vorname eingeben!");
   document.Formular.vorname.focus();
   return false;
  }
 if(document.Formular.strasse.value == "") {
   alert("Bitte Ihre Strasse eingeben!");
   document.Formular.strasse.focus();
   return false;
  }
 if(document.Formular.ort.value == "") {
   alert("Bitte Ihre Postleitzahl eingeben!!");
   document.Formular.ort.focus();
   return false;
  }
 if(document.Formular.ort.value>53999 && ort.value<55000) {
   form.submit();
   else
   alert("Sie wohnen nicht im Einzugsgebiet!");
  }
 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 gültige E-Mail-Adresse!");
   document.Formular.email.focus();
   return false;
  }
}
//-->
</script>