/*************************************************************
*  JavaScript to submit the reactie form
*  =====================================
*  
*
*  Function Written by Thijs van der Laan 20-12-2004
*
**************************************************************/ 

function MailSubmit()
{
//	alert("gegsubmit");
	
	if(document.frmmail.xnaam.value.length<3)
	{
		alert("Your name please");
		document.frmmail.xnaam.focus();
		return;
	}
	if(document.frmmail.xmail.value.length<1)
	{
		alert("Your emailaddress please");
		document.frmmail.xmail.focus();
		return;
	}
	
	pos=document.frmmail.xmail.value.indexOf("@");
	if(pos<1 || pos==document.frmmail.xmail.value.length-1)
	{
		alert("Please check your mailaddress");
		document.frmmail.xmail.focus();
		return;
	}
	
	pos=document.frmmail.xmail.value.indexOf(".");
	if(pos<1 || pos==document.frmmail.xmail.value.length-1)
	{
		alert("Please check your mailaddress");
		document.frmmail.xmail.focus();
		return;
	}
	
	if(document.frmmail.xbericht.value.length<10)
	{
		alert("Please add more content to this email");
		document.frmmail.xbericht.focus();
		return;
	}	
	
	document.frmmail.submit();
}
