function formValidator(){
	// Make quick references to our fields
	var provider_name = document.getElementById('provider_name');
	var facility_name = document.getElementById('facility_name');
	var phone_number = document.getElementById('phone_number');
	var phone_number = document.getElementById('phone_number');
	var city = document.getElementById('city');
	var zip = document.getElementById('zip');
	var email = document.getElementById('email');

	
	// Check each input in the order that it appears in the form!
	if(notEmpty(provider_name, "Required information is missing. Fields marked with a red asterisk must be filled out to continue.")){
		if(notEmpty(facility_name, "Required information is missing. Fields marked with a red asterisk must be filled out to continue.")){
			if(notEmpty(phone_number, "Required information is missing. Fields marked with a red asterisk must be filled out to continue.")){
				if(notEmpty(city, "Required information is missing. Fields marked with a red asterisk must be filled out to continue.")){
					if(notEmpty(zip, "Required information is missing. Fields marked with a red asterisk must be filled out to continue.")){
						if(notEmpty(email, "Required information is missing. Fields marked with a red asterisk must be filled out to continue.")){
							return true;
									}
								}
							}
						}
					}
				}
	
	
	return false;
	
}

function notEmpty(elem, helperMsg){
	if(elem.value.length == 0){
		alert(helperMsg);
		elem.focus(); // set the focus to this input
		return false;
	}
	return true;
}

				var provider_name = new LiveValidation( 'provider_name' );
				provider_name.add( Validate.Presence );
				var email = new LiveValidation( 'email' );
				email.add( Validate.Presence );
				email.add( Validate.Email );
				var facility_name = new LiveValidation( 'facility_name' );
				facility_name.add( Validate.Presence );
				var phone_number = new LiveValidation( 'phone_number' );
				phone_number.add( Validate.Presence );
				var city = new LiveValidation( 'city' );
				city.add( Validate.Presence );
				var zip = new LiveValidation( 'zip' );
				zip.add( Validate.Presence );
				zip.add( Validate.Numericality );