
function verifyContactForm() {
	var empty_fields = "";
	var msg = "";

	var cname = ""
	var email = "";
	cname = document.ContactForm.Name.value;
	email = document.ContactForm.Email.value;

	// Ensure that a name has been provided
	if ((cname == null) || (cname == "") || isblank(cname)) {
		empty_fields += "\n   - Your Name";
	}
	
	// Ensure that a method of contact has been entered (either phone number or email)
	if ((email == null) || (email == "") || isblank(email)) {
		empty_fields += "\n   - Email Address";
	}
	
	// Notify user of any errors
	if (empty_fields) {
		msg =  "--------------------------------------------------------------------------------------\n";
		msg += "Your response could not be processed because of the following error(s).\n";
		msg += "Please correct the error(s) and re-submit.\n";
		msg += "--------------------------------------------------------------------------------------\n\n";
		msg += "The following required field(s) are empty:" + empty_fields + "\n";
        alert (msg);
		return false;
	}

	// Valid entries	
	return true;
}
