  function ValidateLogin(theForm) 
  {
   var missing = ""
   if (theForm.email.value == "" || theForm.email.value == "e-mailadres")
     missing += "  * E-mailadres\n"
   if (theForm.paswoord.value == "" || theForm.paswoord.value == "paswoord")
     missing += "  * Paswoord\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    return false
    }
   else
    return true
   }

  function ValidateZoeken(theForm) 
  {
   if (theForm.zoek_string.value == "")
   {
    alert("U moet een zoekterm invullen !")
    return false
    }
   else
    return true
   }

  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 ValidateRegistratie(theForm) 
  {
   var missing = ""
   if (theForm.voornaam.value == "")
     missing += "  * Naam\n"
   if (theForm.naam.value == "")
     missing += "  * Naam\n"
   if (theForm.email.value == "")
     missing += "  * E-mail\n"
   if (theForm.paswoord.value == "")
     missing += "  * Paswoord\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    return false
    }
   else
    return true
    }

  function ValidateForum(theForm) 
  {
   var missing = ""
   if (theForm.naam.value == "")
     missing += "  * Naam\n"
   if (theForm.vraag.value == "")
     missing += "  * Vraag\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    return false
    }
   else
    return true
    }

 function limitText(limitField, limitCount, limitNum) 
 {
  if (limitField.value.length > limitNum) 
  {
   limitField.value = limitField.value.substring(0, limitNum);
  } 
  else 
  {
   limitCount.value = limitNum - limitField.value.length;
  }
 }

  function ValidateNieuwsbrief(theForm) 
  {
   if (theForm.email.value == "")
   {
    alert("U moet een e-mailadres invullen !")
    return false
    }
   else
    return true
   }


  function ValidateGegevens() 
  {
   var missing = ""
   if (document.frmGegevens.email.value == "")
     missing += "  * Email\n"
   if (document.frmGegevens.naam.value == "")
     missing += "  * Naam\n"
   if (document.frmGegevens.voornaam.value == "")
     missing += "  * Voornaam\n"
   if (document.frmGegevens.straat.value == "")
     missing += "  * Straat\n"
   if (document.frmGegevens.nr.value == "")
     missing += "  * Huisnr\n"
   if (document.frmGegevens.postcode.value == "")
     missing += "  * Postcode\n"
   if (document.frmGegevens.gemeente.value == "")
     missing += "  * Gemeente\n"
   if (document.frmGegevens.land.value == "")
     missing += "  * Land\n"
   if (missing != "") 
   {
    alert("De volgende velden zijn verplicht:\n" + missing)
    }
   else
    document.frmGegevens.submit();
    }
