function ValidateClick() {
var siteURL ="";
siteURL ="http://echealthinsurance.com/quote/";
bw_action ="http://echealthinsurance.com/quote/";
bw_action1 ="http://echealthinsurance.com/individual-and-family-health-insurance-quotes/group-health-insurance-quote/";
bw_action2 ="http://echealthinsurance.com/individual-and-family-health-insurance-quotes/medicare-supplement-quotes/";
bw_action3 ="http://echealthinsurance.com/lifequoteform.html";
bw_action4 ="http://ecautoinsurance.com/auto-insurance-quotes/";
bw_action5 ="http://itsinsurancequotes.com/homeownerquotes/";
typeCombo = document.getElementById('prodid').value;
var bw_zip=document.getElementById('zip').value;

if (isZipcode(bw_zip)){
		switch (typeCombo)
		{
			case "220": 
			document.getElementById('form9').action =bw_action1; //url where the BrokersWeb ResultsPage will be placed
			return true; break;
			case "260": 
			document.getElementById('form9').action =bw_action3; //url where the BrokersWeb ResultsPage will be placed
			return true; break;
			case "240": 
			document.getElementById('form9').action =bw_action2; //url where the BrokersWeb ResultsPage will be placed
			return true; break;

	case "300": 
			document.getElementById('form9').action =bw_action4; //url where the BrokersWeb ResultsPage will be placed
			return true; break;

	case "500": 
			document.getElementById('form9').action =bw_action5; //url where the BrokersWeb ResultsPage will be placed
			return true; break;

			case "200": 
			if(bw_zip >"00000" && bw_zip <"25000" || bw_zip >="50000" && bw_zip <="60000" ){
			//bw_action = bw_action+bw_zip+'&prodid='+typeCombo;
			document.getElementById('form9').action =bw_action; //url where the BrokersWeb ResultsPage will be placed
			return true;
			}
			else{
			document.getElementById('form9').action =siteURL; 
			return true;
			}
			break;
			default: bw_prod = ""; break;
		}
		}
}
function isZipcode(value) {
    var exp_zipcode = /(^\d{5}$)|(^\d{4}$)/;
    return exp_zipcode.test(value);
}
if (typeof zip_cd !="undefined"){
window.onload = function() {
	document.getElementById('zip').value = zip_cd;
}
}
else{
document.write(unescape("%3Cscript type='text/javascript' language='javascript' src='http://www.healthcarecreatives.com/scripts/jsgeo.php' %3E %3C/script%3E "));
window.onload = function() {
	document.getElementById('zip').value = zip_cd;
}
}
