function doPost(){
	if(document.frm.voorletters.value == ""){
		alert ("U dient 'Voorletter(s)' in te vullen.");
		document.frm.voorletters.focus();
	}else if(document.frm.achternaam.value == ""){
		alert ("U dient 'Achternaam' in te vullen.");
		document.frm.achternaam.focus();
	}else if(!isValidEmail(document.frm.email.value))
	{
		alert ("U dient een correct emailadres in te vullen.");
		document.frm.email.focus();
	}else if(document.frm.email.value == ""){
		alert ("U dient 'Email' in te vullen. ");
		document.frm.email.focus();  
	}else if(document.frm.adres.value == ""){
		alert ("U dient 'Adres' in te vullen.");
		document.frm.adres.focus();
	}else if(document.frm.postcode.value == ""){
		alert ("U dient 'Postcode' in te vullen.");
		document.frm.postcode.focus();
	}else if(document.frm.plaats.value == ""){
		alert ("U dient 'Plaats' in te vullen.");
		document.frm.plaats.focus();
	}else{          
//		document.frm.action = "/templates/includes/doneren.php";
                document.frm.action = "/lib/formbuilder/sendmail1.php";
		document.frm.submit();
	}
}

function isValidEmail(str) {
	return (str.indexOf(".") > 0) && (str.indexOf("@") > 0);
}   

function buttonHover(id){
	document.getElementById(id).style.color="#000000";
	document.getElementById(id).style.cursor="pointer";
}

function buttonOut(id){
	document.getElementById(id).style.color="#000000";
}
