function getYearDate() {

	var d = new Date();
	document.write(d.getFullYear());
}

function isValidEmail(str) {
   
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
 
}

function verifyMail() {
	
	var themessage = "U moet de volgende verplichte velden invoeren: ";
	if (document.mailSend.Bedrijfsnaam.value=="") {
		themessage = themessage + " - Bedrijfsnaam";
	}
	if (document.mailSend.Naam.value=="") {
		themessage = themessage + " -  Contactpersoon";
	}
	if (document.mailSend.Aanhef.value=="") {
		themessage = themessage + " -  Aanhef";
	}
	if (document.mailSend.Adres.value=="") {
		themessage = themessage + " -  Adres";
	}
	if (document.mailSend.Postcode.value=="") {
		themessage = themessage + " -  Postcode";
	}
	if (document.mailSend.Woonplaats.value=="") {
		themessage = themessage + " -  Woonplaats";
	}
	if (document.mailSend.Telefoonnummer.value=="") {
		themessage = themessage + " -  Telefoonnummer";
	}
	if (document.mailSend.email.value=="") {
		themessage = themessage + " -  E-mail";
	}
		if (document.mailSend.security_code.value=="") {
		themessage = themessage + " -  Beveiligingscode";
	}
	
	//alert if fields are empty and cancel form submit
	if (themessage == "U moet de volgende verplichte velden invoeren: ") {
		document.mailSend.submit();
	}
	else {
		alert(themessage);
		return false;
	}
}
