function checkEmailAddress(field) {

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);

if (goodEmail){
return false;
} else {
return true;
}
}

function VerifyData() {
// we set valid to 1 : if 0 form will not be submitted.


if (document.contactform.name.value == "") {
		document.contactform.name.focus()
		alert("Vul u aub uw naam in.\n")
		return false;
	}

if (document.contactform.email.value == "") {
		document.contactform.email.focus()
		alert("Vul u aub uw email-adres in.\n")
		return false;
	}
	
if(checkEmailAddress(document.contactform.email)) {
		document.contactform.email.focus()
		alert("Uw email-adres is niet correct.\n")
		return false;
}


if (document.contactform.remarks.value == "") {
		document.contactform.remarks.focus()
		alert("U heeft geen opmerking ingevuld.\n")
		return false;
	}
	

	document.contactform.submit() 
	}
