function formpruefen(){
//Vorname
   if(document.contact.Vorname.value==""){
      alert("Das Feld 'Vorname' muß ausgefüllt werden!");
      document.contact.Vorname.focus();
      return false;}
//Name
   if(document.contact.Name.value==""){
      alert("Das Feld 'Name' muß ausgefüllt werden!");
      document.contact.Name.focus();
      return false;}
//Strasse
   if(document.contact.Strasse.value==""){
      alert("Das Feld 'Strasse' muß ausgefüllt werden!");
      document.contact.Strasse.focus();
      return false;}
//PLZ
   if(document.contact.PLZ.value==""){
      alert("Das Feld 'PLZ' muß ausgefüllt werden!");
      document.contact.PLZ.focus();
      return false;}
//Ort
   if(document.contact.Ort.value==""){
      alert("Das Feld 'Ort' muß ausgefüllt werden!");
      document.contact.Ort.focus();
      return false;}
//Telefon oder Mobil
   if(document.contact.Telefon.value=="" && document.contact.Mobil.value==""){
      alert("Die Felder 'Telefon' oder 'Mobil'\nmüssen ausgefüllt werden!");
      document.contact.Telefon.focus();
      return false;}
//eMail Adresse
   if(document.contact.email.value!=""){
      if(document.contact.email.value.match(/^[a-zA-Z0-9_\.-]{2,}@[a-z0-9-]{3,}\.[a-z]{2,4}|museum$/)){
         var xxx;}
         else{
         alert("Die angegebene eMail-Adresse entspricht nicht\nden gültigen Spezifikationen (name@domain.tld)!");
         document.contact.email.focus();
         return false;}}
//Mitteilungstext
   if(document.contact.Mitteilung.value==""){
      alert("Das Feld 'Mitteilung' muß ausgefüllt werden!");
      document.contact.Mitteilung.focus();
      return false;}
//Name komprimieren
   document.contact.realname.value=document.contact.Vorname.value+" "+document.contact.Name.value
   document.contact.subject.value=document.contact.Betreff.value;
//URL in redirect schicken
   document.contact.redirect.value="http://www.ferienhaus-ambiente-braunlage.de/kontakt/antwort.html?"+
      "id="+document.contact.Anrede.value+"&"+
      "id="+document.contact.Vorname.value+"&"+
      "id="+document.contact.Name.value+"&"+
      "id="+document.contact.Strasse.value+"&"+
      "id="+document.contact.PLZ.value+"&"+
      "id="+document.contact.Ort.value+"&"+
      "id="+document.contact.Telefon.value+"&"+
      "id="+document.contact.Telefax.value+"&"+
      "id="+document.contact.Mobil.value+"&"+
      "id="+document.contact.email.value+"&"+
      "id="+document.contact.subject.value+"&"+
      "id="+document.contact.Mitteilung.value;
//Anfrage absenden?
   senden=confirm("Möchten Sie die Nachricht absenden?");
   if(senden==false){
      return false;}}
