<!--
function ValidateForm()
{
	var strErr = "";
	
	var tmpZip = trim(document.quoteform.zipcode.value);
	document.quoteform.zipcode.value = tmpZip;
	if (tmpZip.search(/^\d{5}/) == -1 ||  tmpZip.length > 5) {
		strErr = strErr + " \n Zip Code is required and must be in the format: \n\n 00000.\n";
	}

	if (strErr != "") {
		alert(strErr);
		return false;
	}
	return true;
}

function trim(str){
	return((" "+ str).replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/,"$1"));
}

function v_agent()
{
	var strErr = "";
	
	if (document.getElementById('agent-zip').value == '') {
		strErr = strErr + "\n Please enter a zip code. \n";
	}
	if (document.getElementById('agent-type').value == '') {
		strErr = strErr + "\n Please select an insurance type. \n";
	}

	if (strErr != "") {
		alert(strErr);
		return false;
	}
	return true;
}
-->