function isEmpty(str){
	return (str == null) || (str.length == 0);
}
function isEmail(str){
	if(isEmpty(str)) return false;
	var re = /^[^\s()<>@,;:\/]+@\w[\w\.-]+\.[a-z]{2,}$/i
	return re.test(str);
}
function validate(f){
	var errors = "";
	if(isEmpty(f.naam.value)) errors += "Vul a.u.b. uw naam in\n";
	if(!isEmail(f.email.value)) errors += "Vul a.u.b. een geldig emailadres in in\n";
	if(isEmpty(f.bericht.value)) errors += "Vul a.u.b. een bericht in\n";
	if(errors != "") alert(errors);
	return errors == "";
}