function ValidateForm()
{
	var strErr = "";
	
	var tmpZip = trim(document.getQuoteForm.zip.value);
	document.getQuoteForm.zip.value = tmpZip;
	if (tmpZip.search(/^\d{5}/) == -1 ||  tmpZip.length > 5) {
		strErr = strErr + "Zip Code is required and must be in the format 00000.\n";
	}
	if (!document.getQuoteForm.insured[0].checked && !document.getQuoteForm.insured[1].checked) {
		strErr = strErr + "Currently Insured is required and you must select Yes or No.\n";
	}
	if (strErr != "") {
		alert(strErr);
		return false;
	}
	preserveRefby();
	return true;
}

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

