
  function ValidateContact(theForm) 
  {
   var missing = ""
   if (theForm.naam.value == "")
     missing += "  * Naam\n"
   if (theForm.email.value == "")
     missing += "  * E-mail\n"
   if (theForm.vraag.value == "")
     missing += "  * Vraag\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    return false
    }
   else
    return true
    }

  function ValidatePrijsvraag(theForm) 
  {
   var missing = ""
   if (theForm.voormalige.value == "")
     missing += "  * Voormalige vrouwenvereniging\n"
   if (theForm.aantal.value == "")
     missing += "  * Aantal\n"
   if (theForm.naam.value == "" || theForm.naam.value == "Naam")
     missing += "  * Naam\n"
   if (theForm.email.value == "" || theForm.email.value == "E-mailadres")
     missing += "  * E-mailadres\n"
   if (theForm.nr.value == "" || theForm.nr.value == "Lidkaartnummer")
     missing += "  * Lidkaartnummer\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    return false
    }
   else
   {
    if (theForm.nr.value.length != 4)
    {
     alert("Het lidkaartnummer moet uit 4 cijfers bestaan!")
     return false
     }
    else
    {
     if (isNaN(theForm.nr.value)) 
     {
      alert("Het lidkaartnummer moet uit 4 cijfers bestaan!")
      return false
      }
     else 
      return true
     }
    }
  }

  function ValidateLidWorden(theForm) 
  {
   var missing = ""
   if (theForm.naam.value == "")
     missing += "  * Naam\n"
   if (theForm.voornaam.value == "")
     missing += "  * Voornaam\n"
   if (theForm.straat.value == "")
     missing += "  * Straat\n"
   if (theForm.nr.value == "")
     missing += "  * Nr\n"
   if (theForm.postcode.value == "")
     missing += "  * Postcode\n"
   if (theForm.gemeente.value == "")
     missing += "  * Gemeente\n"
   if (theForm.postcode.value == "")
     missing += "  * Postcode\n"
   if (theForm.telefoon.value == "")
     missing += "  * Telefoon\n"
   if (theForm.email.value == "")
     missing += "  * E-mail\n"
   if (theForm.geboortedatum.value == "")
     missing += "  * Geboortedatum\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    return false
    }
   else
    return true
    }


  function ValidateInschrijven(theForm) 
  {
   var missing = ""
   if (theForm.naam.value == "")
     missing += "  * Naam\n"
   if (theForm.nr.value == "")
     missing += "  * Lidkaartnummer\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    return false
    }
   else
   {
    if (theForm.nr.value.length != 4)
    {
     alert("Het lidkaartnummer moet uit 4 cijfers bestaan!")
     return false
     }
    else
    {
     if (isNaN(theForm.nr.value)) 
     {
      alert("Het lidkaartnummer moet uit 4 cijfers bestaan!")
      return false
      }
     else 
      return true
     }
    }
  }


