<!--
// AirAdventure FormChecker

function check_email(e) 
	{
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) 
		{
			return (-1);
		}
	}
	
function verwerkAanvraagForm() 
{
	  var allesOk = true;

	  // wis alle foutmeldingen

	  document.getElementById("emailError").firstChild.nodeValue = "";

	  // check correctheid gegevens
	  
	  var emailValue = document.forms.aanvraagForm.contactEmail.value;

	  if (!check_email(emailValue)) 
	  {
		document.getElementById("emailError").firstChild.nodeValue = "Het ingegeven E-mail adres blijkt niet correct te zijn";	
		allesOk = false;
	  }
	
	  // check ingevuld/geselecteerd

	  if (emailValue == "")
	  {
		document.getElementById("emailError").firstChild.nodeValue = "Gelieve een E-mail adres in te geven";
		allesOk = false;
	  }

	  if (allesOk) document.forms.aanvraagForm.submit();
}

-->