function formcheck() {
   thisform = document.aanmelden;
   if (thisform.Achternaam.value == "") {
       alert("Vul uw achternaam in.");
       thisform.Achternaam.focus();
       return false;
   }
   /*
   if (thisform.Voornamen.value == "") {
       alert("Vul uw voornaam in.");
       thisform.Voornamen.focus();
       return false;
   }
   if (thisform.Emailadres.value == "") {
       alert("Vul uw emailadres in.");
       thisform.Emailadres.focus();
       return false;
   }

   if (thisform.Organisatie.value == "") {
       alert("Vul de naam van de organisatie in.");
       thisform.Organisatie.focus();
       return false;
   }
   if (thisform.Postadres.value == "" || thisform.Postcode.value == "" || thisform.Plaats.value == "") {
       alert("Vul een volledig postadres (adres, postcode en plaats) in.");
       thisform.Postadres.focus();
       return false;
   }
   */
   /*
   if (!thisform.module1[0].checked && !thisform.module1[1].checked && !thisform.module1[2].checked) {
       alert("Kies de gewenste datum voor module 1");
       return false;
   }
   if (!thisform.module2[0].checked && !thisform.module2[1].checked && !thisform.module2[2].checked && !thisform.module2[3].checked) {
       alert("Kies de gewenste datum voor module 2");
       return false;
   }
   if (!thisform.module3[0].checked && !thisform.module3[1].checked && !thisform.module3[2].checked && !thisform.module3[3].checked) {
       alert("Kies de gewenste datum voor module 3");
       return false;
   }
   */
   return checkEmail(thisform.Emailadres.value);
}

function checkEmail(Emailadres) {
   if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(Emailadres)) {
      //return true;
      return true;
   }
   alert("Vul een geldig e-mail adres in");
   thisform.Emailadres.focus();
   return false;
}