function chkformular()
{
     if(document.formular.vorname.value == "")
      {
       alert("Please enter your name! / Bitte Ihren Namen eingeben!");
       document.formular.vorname.focus();
       return false;
      }
     var email = document.formular.email.value;
     if (email=="")
     {
      alert("Please enter an e-mail address! / Bitte eine E-Mail-Adresse eingeben!");
        document.formular.email.focus();
      return false;
      }
    var at_pos;
    at_pos =email.indexOf("@");
    if (at_pos < 0 && document.formular.email.value!="")
     {
      alert("Wrong e-mail address: missing @ sign / Fehlerhafte E-Mail-Adresse: @-Zeichen fehlt!");
      document.formular.email.focus();
      return false;
     }
     if (at_pos == 0 && document.formular.email.value!="")
      {
      alert("Wrong e-mail address: @ sign at the beginning! / Fehlerhafte E-Mail-Adresse: @ am Anfang!");
      document.formular.email.focus();
      return false;
      }
     if (at_pos > 0 && document.formular.email.value!="")
      {
       if (email.lastIndexOf("@") != at_pos)
        {
       alert("Wrong e-mail address: more than one @ sign / Fehlerhafte E-Mail-Adresse: Mehrfaches @ - Zeichen");
       document.formular.email.focus();
       return false;
       }
      }
      var punkt;
      punkt=email.indexOf(".");
      if (punkt < 0 && document.formular.email.value!="")
       {
        alert("Wrong e-mail address: missing dot '.'! / Fehlerhafte E-Mail-Adresse: Punkt '.' fehlt!");
        document.formular.email.focus();
        return false;
       } 
      if(document.formular.comment.value == "")
      {
       alert("Wouldn´t you like to enter a comment? / Möchten Sie keinen Kommentar eingeben?");
       document.formular.comment.focus();
       return false;
      }
       {
      var sonder_check = document.formular.vorname.value+document.formular.email.value+document.formular.comment.value;
      Ergebnis = sonder_check.match(/\<|\>|\\|\//gi);
      if(Ergebnis){
      alert("Please don´t enter any HTML tags or special characters... / Bitte keine HTML-TAGS oder Sonderzeichen eingeben...");
      parent.location.href="index.html";     
      }
      document.formular.vorname.focus();
      }
}

function laden ()  
{
 if(top.frames.length == 0)
 {
 parent.location.href='index.html';
}
}




