function UpdateCounty(lngCountyQID,frmObj,pblnIsHomePage) {
	var selected;
	var objCounty;
	var strActionPath;
								
	strCountyQID = "Q" + lngCountyQID
											
	selected = frmObj.options[frmObj.selectedIndex].value;
							
	if(pblnIsHomePage == true) {
		objCounty = eval('document.frmSubmitter.' + strCountyQID);
		strActionPath = 'Home/HomeSearch.asp'
	}
	else {
		objCounty = eval('document.frmDisplay.' + strCountyQID);	
		strActionPath = 'CheckRates/SearchCriteria.asp'
	}

	var selectedArray = eval("countyArray" + selected);
	while (selectedArray.length < objCounty.options.length) {
		objCounty.options[(objCounty.options.length - 1)] = null;
	}
	for (var i=0; i < selectedArray.length; i++) {
		eval("objCounty.options[i]=" + "new Option" + selectedArray[i]);
	}
	UpdateForm(objCounty);		


} //function

function UpdateCity(pstrCityQID,frmObj,pblnIsHomePage) {
	var varSelectedValue;
	var objCity;
	var objfrmSubmitterCity;
									
	varSelectedValue = frmObj.options[frmObj.selectedIndex].value;
		
	if(pblnIsHomePage == true) 
		objCity = eval('document.frmSubmitter.' + pstrCityQID);
	else {
		objCity = eval('document.frmDisplay.' + pstrCityQID);	
	}
	if (objCity != null) {
		var selectedArray = eval("cityArray" + varSelectedValue);
		while (selectedArray.length < objCity.options.length) {
			objCity.options[(objCity.options.length - 1)] = null;
		}
		for (var i=0; i < selectedArray.length; i++) {
			eval("objCity.options[i]=" + "new Option" + selectedArray[i]);
		}
		UpdateForm(objCity);
	}

}

