// Java Script by Urb LeJeune urb@rapidwebsites.net
// Modified by Martin Samesch martin@theraphosidae.net

var TimesSubmitted=0;

function ResetValues() {
document.Formular.rubrik.value="";
document.Formular.name.value="";
document.Formular.email.value="";
document.Formular.anzeigentext.value="";
}

function CheckInput() {   // Only check fields for null input
if ( (document.Formular.rubrik.value=="")  ||
     (document.Formular.name.value=="") ||
     (document.Formular.email.value=="") ||
     (document.Formular.anzeigentext.value=="") )
   {
   alert("Bitte Name, E-Mail-Adresse und Anzeigentext eingeben und Rubrik auswählen.\nPlease enter your name, email, and text and choose a category.");
   return false;
   }
else
   { if (TimesSubmitted == 0){ TimesSubmitted++; return true;
   } else {
      alert("Dieses Formular wurde schon abgeschickt. Danke!\nThis form has already been submitted.  Thanks!");
      return false; }
   }
}

function CheckSubmit() {
   { if (TimesSubmitted == 0){ TimesSubmitted++; return true;
   } else {
      alert("Dieses Formular wurde schon abgeschickt. Danke!\nThis form has already been submitted.  Thanks!");
      return false; }
   }
}
//  End
