function validateFindOutMore(f)
{
	var emptyFields = '';
	var focusOn = false;

	if (f.name.value == '') {
		emptyFields += "  -  Your name\n";

		if (!focusOn)	f.name.focus();
		focusOn = true;
	}

	if (f.from.value == '') {
		emptyFields += "  -  Your email address\n";

		if (!focusOn)	f.from.focus();
		focusOn = true;

	} else {
		var str = f.from.value
		var email_regex = /^[a-zA-Z0-9._%-]+@([a-zA-Z0-9_%-]+\.)*[a-zA-Z0-9_%-]+$/i

		if (str != '' && (email_regex.test(str)) != true) {
			emptyFields += "  -  A valid email address\n"

			if (!focusOn)	f.from.focus();
			focusOn = true;
		}
	}

	if (emptyFields != '') {
		alert("Please fill in the following information:\n" + emptyFields);
		return false;
	}
	return true;
}


function validateRequest(f)
{
	var emptyFields = '';
	var focusOn = false;

	if (f.name.value == '') {
		emptyFields += "  -  Your name\n";

		if (!focusOn)	f.name.focus();
		focusOn = true;
	}
	if (f.phone.value == '' || f.parea.value == '') {
		emptyFields += "  -  Your contact phone number with area code\n";

		if (!focusOn) {
			if (f.phone.value == '')	f.phone.focus();
			else						f.parea.focus();
		}
		focusOn = true;
	}
	if (f.email.value == '') {
		emptyFields += "  -  Your email address\n";

		if (!focusOn)	f.email.focus();
		focusOn = true;

	} else {
		var str = f.email.value
		var email_regex = /^[a-zA-Z0-9._%-]+@([a-zA-Z0-9_%-]+\.)*[a-zA-Z0-9_%-]+$/i

		if (str != '' && (email_regex.test(str)) != true) {
			emptyFields += "  -  A valid email address\n"

			if (!focusOn)	f.email.focus();
			focusOn = true;
		}
	}

	if (emptyFields != '') {
		alert("To help process your quote faster, please fill in the following information:\n" + emptyFields);
		return false;
	}
	return true;
}
