function validate_contact(theform){
	var useremail;
	var name = theform.Name;
	var email = theform.Email;
	var phone = theform.Phone;
	var comments = theform.FeedbackDescription;

	useremail=isEmail(email.value);

	if (name.value==""){
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (useremail==false){
		alert("Please enter your proper email address.");
		email.focus();
		return false;
	}

	if (phone.value==""){
		alert("Phone cannot be blank.");
		phone.focus();
		return false;
	}

	if (comments.value==""){
		alert("Problems / comments cannot be blank.");
		comments.focus();
		return false;
	}
}

function validate_feedback(theform){
	var useremail;
	var name = theform.Name;
	var email = theform.Email;
	var phone = theform.Phone;

	useremail=isEmail(email.value);

	if (name.value==""){
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (useremail==false){
		alert("Please enter your proper email address.");
		email.focus();
		return false;
	}

	if (phone.value==""){
		alert("Phone cannot be blank.");
		phone.focus();
		return false;
	}
}
