function changeTypeDropValues(formname,select){ var formname = formname; var selectedIndex = select.options.selectedIndex; var selectedValue = select.options[selectedIndex].value; var countryID = formname.country_id.value; switch (countryID){ case "200": switch (selectedValue) { case "3": case "4": priceRange = price_uk_rental; break; case "5": priceRange = price_uk_sales; break; case "6": priceRange = price_uk_holidayhomes; break; } break; case "202": switch (selectedValue) { case "3": case "4": priceRange = price_usa_rental; break; case "5": priceRange = price_usa_sales; break; case "6": priceRange = price_usa_holidayhomes; break; } break; } for(i=formname.price_range.options.length;i>=0;i--){ formname.price_range.options[i]=null; } for(i=0;i=0;i--){ formname.region_id.options[i]=null; } for(i=0;i