// JavaScript Document
// You can turn this off with the form's onSubmit action
function validateContact() {
	// This checks if its the form we are talking about
	with (document.contact_form) {
		// Default alert message
		var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
		
			//ADD STUFF HERE
			// Validation of your form data.
			if (name.value == "") alertMsg += "\nYour Contact Name";
			if (company.value == "") alertMsg += "\nYour Company Name";
			if (email.value == "") alertMsg += "\nYour E-Mail Address";
			if (phone.value == "") alertMsg += "\nYour Phone Number";
			if (message.value == "") alertMsg += "\nYour Message";
			
			// This checks to see if the default alert message has not been changed
			if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
				alert(alertMsg);
				return false;
			} else {
				return true;
			}
	}
}