function fctControle(theForm)
{
	if(theForm.email.value.length < 1)
	  {
		alert("Gelieve een waarde in te geven voor : Email.");
		theForm.email.focus();
		theForm.email.select();
		return (false);
	  }
	 
     if(document.getElementById('email').value.length > 0)
	  {
		return fctControleEmail(document.getElementById('email').value);
	  }
	return true;
}

function fctFormatEmail(Pers_email)
{
	if ((Pers_email.indexOf('@',0)==-1) || (Pers_email.indexOf('.',0)==-1))
	{
    		return false;
   	}
  
}

function fctControleEmail(email)
{
	strEmail = email;
	if(strEmail.length > 0)
	{
		if (fctFormatEmail(strEmail)==false)
		{
			alert("Incorrect e-mailadres");
			return (false);
		}
	}
}
