function ChangeCounty( oSel)
{
var intSelected = oSel.value;
var intDefault = 0;
var intSelect = -1;
oSel.options.length = 0;
for (i = 1; i < CountyCity.length; i++)
{
oSel.options[oSel.length] = new Option(CountyCity[i][1], CountyCity[i][0], false, false);
if (CountyCity[i][0]==CountyCity[0] && CountyCity[0]!=0)
intDefault = i - 1;
if (CountyCity[i][0]==intSelected && intSelect<0)
intSelect = i - 1;
}
if (intSelect>=0)
oSel.selectedIndex = intSelect;
else
oSel.selectedIndex = intDefault;
}
