function checkNaam(){
	if(document.forms[0].naam.value=="") {
		alert("Please fill in your company name.");
		document.forms[0].naam.focus();
		return false;
	} return true;
}

function checkMail(){
	if(document.forms[0].email.value==""){
		alert("Please fill in your e-mail address.");
		document.forms[0].email.focus();
		return false;
	}
	if(document.forms[0].email.value.indexOf('@')==-1 || document.forms[0].email.value.indexOf('@')==0 || document.forms[0].email.value.indexOf('@')==(document.forms[0].email.value.length-1)){
		alert("This e-mail address is wrong.");
		document.forms[0].email.focus();
		return false;
	}
	if(document.forms[0].email.value.indexOf('.')==-1 || document.forms[0].email.value.indexOf('.')==0 || document.forms[0].email.value.indexOf('.')==(document.forms[0].email.value.length-1)){
		alert("This e-mail address is wrong.");
		document.forms[0].email.focus();
		return false;
	}
	return true;
}

function checkKontaktpersoon(){
	if(document.forms[0].kontaktpersoon.value=="") {
		alert("Please fill in the person to contact.");
		document.forms[0].kontaktpersoon.focus();
		return false;
	} return true;
}

function checkNorobot(){
	if(document.forms[0].norobot.value=="") {
		alert("Please fill in the anti spam code.");
		document.forms[0].norobot.focus();
		return false;
	} return true;
}

function Verstuur(){
	if(!checkNaam()) return;
	if(!checkMail()) return;
	if(!checkKontaktpersoon()) return;
	if(!checkNorobot()) return;
	document.forms[0].submit();
}
