function ControleAanvraag(theForm)
{
if (theForm.naam.value == "")
  {
    alert("Gelieve uw naam in te vullen");
    theForm.naam.focus();
    return (false);
  }

 if (theForm.naam.value.length < 2)
   {
     alert("Gelieve een correcte naam in te vullen");
     theForm.naam.focus();
     return (false);
  }

  if (theForm.voornaam.value == "")
    {
      alert("Gelieve uw voornaam in te vullen");
      theForm.voornaam.focus();
      return (false);
    }

   if (theForm.voornaam.value.length < 2)
     {
       alert("Gelieve een correcte voornaam in te vullen");
       theForm.voornaam.focus();
       return (false);
    }

  if (theForm.firma.value == "")
  {
    alert("Gelieve de naam van uw firma in te vullen");
    theForm.firma.focus();
    return (false);
  }
  
  if (theForm.btw.value == "")
  {
    alert("Gelieve de BTW nummer van uw firma in te vullen");
    theForm.btw.focus();
    return (false);
  }  

  if (theForm.adres.value == "")
    {
      alert("Gelieve uw adres in te vullen");
      theForm.adres.focus();
      return (false);
  }

  if (theForm.adres.value.length < 7 )
    {
      alert("Gelieve een correct adres in te vullen");
      theForm.adres.focus();
      return (false);
  }

if (theForm.postcode.value == "")
  {
    alert("Gelieve uw postcode in te vullen");
    theForm.postcode.focus();
    return (false);
  }

  if (theForm.postcode.value.length < 4)
    {
      alert("Gelieve een correcte postcode in te vullen");
      theForm.postcode.focus();
      return (false);
  }

if (theForm.plaats.value == "")
  {
    alert("Gelieve de plaats in te vullen");
    theForm.plaats.focus();
    return (false);
  }

 if (theForm.plaats.value.length < 2)
    {
      alert("Gelieve een correcte plaats in te vullen");
      theForm.plaats.focus();
      return (false);
  }


if (theForm.tel.value == "")
  {
    alert("Gelieve uw GSM of telefoon nr in te vullen");
    theForm.tel.focus();
    return (false);
  }

if (theForm.tel.value.length < 9 )
  {
    alert("Gelieve een correct telefoonnummer in te vullen");
    theForm.tel.focus();
    return (false);
  }

 if (theForm.email.value == "")
  {
    alert("Gelieve uw email-adres in te vullen");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 6 )
  {
    alert("Gelieve een correct email adres in te vullen");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.indexOf('@', 0) == -1)
  {
    alert("Gelieve een correct email adres in te vullen");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.indexOf('.') == -1)
  {
    alert("Gelieve een correct email adres in te vullen");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 65)
  {
    alert("Gelieve een correct email adres in te vullen");
    theForm.email.focus();
    return (false);
  }

  return (true);
}
