// JavaScript Document

function FrontPage_Form1_Validator(theForm)
{

	if( (theForm.sexe[0].checked == false) && (theForm.sexe[1].checked == false))
		{
		alert ("Voer een geslacht in.");
		return (false);
		}
	
  if (theForm.naam.value == "")
  {
    alert("Voer je achternaam in.");
    theForm.naam.focus();
    return (false);
  }

  if (theForm.initialen.value.length < 1)
  {
    alert("Voer je initialen in");
    theForm.initialen.focus();
    return (false);
  }

  if (theForm.straat.value == "")
  {
    alert("Geef een waarde voor het veld straat op.");
    theForm.straat.focus();
    return (false);
  }

  if (theForm.nummer.value == "")
  {
    alert("Geef een waarde voor het veld nummer op.");
    theForm.nummer.focus();
    return (false);
  }

  if (theForm.postcode.value == "")
  {
    alert("Geef een waarde voor het veld postcode op.");
    theForm.postcode.focus();
    return (false);
  }

  if (theForm.postcode.value.length < 4)
  {
    alert("Geef ten minste 4 tekens in het veld postcode op.");
    theForm.postcode.focus();
    return (false);
  }

  if (theForm.woonplaats.value == "")
  {
    alert("Geef een waarde voor het veld woonplaats op.");
    theForm.woonplaats.focus();
    return (false);
  }

  if (theForm.woonplaats.value.length < 2)
  {
    alert("Geef ten minste 2 tekens in het veld woonplaats op.");
    theForm.woonplaats.focus();
    return (false);
  }

  if (theForm.email_adres.value == "")
  {
    alert("Geef een waarde voor het veld email_adres op.");
    theForm.email_adres.focus();
    return (false);
  }

  if (theForm.email_adres.value.length < 5)
  {
    alert("Geef ten minste 5 tekens in het veld emailadres op.");
    theForm.email_adres.focus();
    return (false);
  }
  
  if(theForm.capt.value != theForm.c_hid.value)
  { alert("Type de code onderaan de pagina juist over.");
	return (false);
  }
  
  return (true);
}