function checkSendMail(formName) {
	var thisForm = document.getElementById(formName);
	
	//Validate email field
	if(thisForm.email.value!=thisForm.email2.value) {
		alert("The email address and confirm email address fields don't match. Please ensure they both match.");
		return false;
	}
	
	if(thisForm.email.value==""||thisForm.name.value==""||thisForm.message.value=="") {
		alert("Please ensure that all required fields are entered.");
		return false;
	}
	
	var emailAddress = thisForm.email.value;
	var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	
	if (filter.test(emailAddress)==false){
		alert("Please enter a valid email address.\n");
		return false;
	}
	
	return true;
}

