function validate() {
	var emailFilter=/^.+@.+\..{2,3}$/.test(document.contactform.email.value);
	
	var validationAlert = ""
	
	if(document.contactform.first_name.value == "" || document.contactform.first_name.value == null) {
		validationAlert += "First Name is required\n";
	}
	if(document.contactform.last_name.value == "" || document.contactform.last_name.value == null) {
		validationAlert += "Last Name is required\n";
	}
	if(document.contactform.email.value == "" || document.contactform.email.value == null) {
		validationAlert += "Email is required\n";
	}
	
	//if ((document.contactform.email.value.indexOf ('@',0) == -1 ||
	//	  document.contactform.email.value.indexOf ('.',0) == -1) &&
	//	  document.contactform.email.value != "") {
    //	validationAlert += "Valid email address is required\n";
	//}
	
	if (emailFilter == false && document.contactform.email.value != "") {
    	validationAlert += "Valid email address is required\n";
	}
	
	if(document.contactform.address.value == "" || document.contactform.address.value == null) {
		validationAlert += "Address is required\n";
	}
	if(document.contactform.city.value == "" || document.contactform.city.value == null) {
		validationAlert += "City is required\n";
	}
	if(document.contactform.state.value == "" || document.contactform.state.value == null) {
		validationAlert += "State is required\n";
	}
	if(document.contactform.zip.value == "" || document.contactform.zip.value == null) {
		validationAlert += "Zip Code is required\n";
	}
	if(document.contactform.phone.value == "" || document.contactform.phone.value == null) {
		validationAlert += "Phone Number is required\n";
	}
	
	if(validationAlert != "") {
		alert(validationAlert);
	}
	else {
		document.contactform.submit();
	}
}