 function ValidateContactNL(theForm) 
 {
  var missing = ""
  if (theForm.naam.value == "")
    missing += "  * Naam\n"
  if (theForm.bedrijf.value == "")
      missing += "  * Bedrijf\n"
  if (theForm.telefoon.value == "")
      missing += "  * Telefoon\n"
  if (theForm.email.value == "")
      missing += "  * E-mail\n"      
  if (theForm.straat.value == "")
      missing += "  * Straat\n"
  if (theForm.postcode.value == "")
      missing += "  * Postcode\n"
  if (theForm.gemeente.value == "")
      missing += "  * Gemeente\n"          
  if (missing != "") 
  {
   alert("De volgende velden zijn verplicht:\n" + missing)
   return false
   }
   else
     return true
 }

 function ValidateContactEN(theForm) 
 {
  var missing = ""
  if (theForm.naam.value == "")
    missing += "  * Name\n"
  if (theForm.bedrijf.value == "")
      missing += "  * Company\n"
  if (theForm.telefoon.value == "")
      missing += "  * Phone\n"
  if (theForm.email.value == "")
      missing += "  * E-mail\n"      
  if (theForm.straat.value == "")
      missing += "  * Street\n"
  if (theForm.postcode.value == "")
      missing += "  * Zip\n"
  if (theForm.gemeente.value == "")
      missing += "  * City\n"          
  if (missing != "") 
  {
   alert("The following fields are mandatory:\n" + missing)
   return false
   }
   else
     return true
 }

 function ValidateContactFR(theForm) 
 {
  var missing = ""
  if (theForm.naam.value == "")
    missing += "  * Nom\n"
  if (theForm.bedrijf.value == "")
      missing += "  * Company\n"
  if (theForm.telefoon.value == "")
      missing += "  * Téléphone\n"
  if (theForm.email.value == "")
      missing += "  * E-mail\n"      
  if (theForm.straat.value == "")
      missing += "  * Rue\n"
  if (theForm.postcode.value == "")
      missing += "  * Code postal\n"
  if (theForm.gemeente.value == "")
      missing += "  * Commune\n"          
  if (missing != "") 
  {
   alert("Les champs suivant sont obligatoire:\n" + missing)
   return false
   }
   else
     return true
 }

 function ValidateLoginNL(theForm) 
 {
  var missing = ""
  if (theForm.email.value == "" || theForm.email.value == "E-mailadres")
    missing += "  * E-mailadres\n"
  if (theForm.paswoord.value == "" || theForm.paswoord.value == "1234567890")
    missing += "  * Paswoord\n"
  if (missing != "") 
  {
   alert("De volgende velden zijn verplicht:\n" + missing)
   return false
   }
   else
     return true
 }

 function ValidateLoginEN(theForm) 
 {
  var missing = ""
  if (theForm.email.value == "" || theForm.email.value == "E-mail")
    missing += "  * E-mailadres\n"
  if (theForm.paswoord.value == "" || theForm.paswoord.value == "1234567890")
    missing += "  * Paswoord\n"
  if (missing != "") 
  {
   alert("The following fields are mandatory:\n" + missing)
   return false
   }
   else
     return true
 }

 function ValidateLoginFR(theForm) 
 {
  var missing = ""
  if (theForm.email.value == "" || theForm.email.value == "E-mail")
    missing += "  * E-mailadres\n"
  if (theForm.paswoord.value == "" || theForm.paswoord.value == "1234567890")
    missing += "  * Paswoord\n"
  if (missing != "") 
  {
   alert("Les champs suivant sont obligatoire:\n" + missing)
   return false
   }
   else
     return true
 }

 function ValidateReservatieNL(theForm) 
 {
  var missing = ""
  if (theForm.lokaal_id.value == "")
    missing += "  * Lokaal\n"
  if (theForm.datum.value == "")
    missing += "  * Datum\n"
  if (missing != "") 
  {
   alert("De volgende velden zijn verplicht:\n" + missing)
   return false
   }
   else
   { 
     if (Number(theForm.start_uur.value.replace(/:/g, "")) > Number(theForm.eind_uur.value.replace(/:/g, ""))) 
     {
       alert("Start uur moet voor eind uur vallen !")
       return false
      }
     else
       return true
   }
 }
