	function fctControle(theForm)
	{
	    
		if(theForm.Firma.value.length < 1)
		  {
			alert("gelieve een waarde in te vullen voor het veld : Firma");
			theForm.Firma.focus();
			theForm.Firma.select();
			return (false);
		  }
		
		
		  
		  if(theForm.Email.value.length < 1)
		  {
			alert("gelieve een waarde in te vullen voor het veld : E-mail");
			theForm.Email.focus();
			theForm.Email.select();
			
			return (false);
		  }
		 
		  if(theForm.Email.value.length > 0)
		  {
			return fctControleEmail();
		  }
		return (true);	
	}
	
	function fctFormatEmail(Email)
	{
		if ((Email.indexOf('@',0)==-1) || (Email.indexOf('.',0)==-1))
		{
		return false;
		}
		else
		{
		return true;
		}
	}

	function fctControleEmail()
	{
	strEmail = document.frm1.Email.value;
	    if(strEmail.length > 0)
	    {
	        if (fctFormatEmail(strEmail)==false)
	            {
	            alert("Het emailadres dat u invulde, is niet correct. Gelieve dit te corrigeren");
	            document.frm1.Email.focus();
	            return (false);
	            }
	    }
	}

