﻿function validateForm() {
	var valid = HO.Validation;


	var formElements = new Array();
	formElements.push(new valid.formElementsToValidate('first_name', "You must enter a first name"));
	formElements.push(new valid.formElementsToValidate('last_name', "You must enter a last name"));
	formElements.push(new valid.formElementsToValidate('company', "You must enter a company name"));
	formElements.push(new valid.formElementsToValidate('email', "You must enter an email"));
	formElements.push(new valid.formElementsToValidate('phone', "You must enter a phone number"));
	formElements.push(new valid.formElementsToValidate('lead_source', "You must select how you found out about us"));
	

	var msg = valid.submitValidation(formElements);

	if (msg != "") {
		alert(msg);
		valid.setFocusFirstField();
		return false;
	}

	return true;
}

