<!--
function onChangeCountry(intCountryID, lstCounty, lstCity)
{
	clearList(lstCounty);
	
	clearList(lstCity);

	if (intCountryID != 0) syncList(intCountryID, lstCounty, g_arrCounty);
}

function onChangeCounty(intCountyID, lstCity)
{
	clearList(lstCity);

	if (intCountyID != 0) syncList(intCountyID, lstCity, g_arrCity);
}

function clearList(lstControl)
{
	lstControl.length = 1;
	
	lstControl.selectedIndex = 0;
}

function syncList(strID, lstControl, arrData)
{
	for (var i = 0; i < arrData.length; ++i)
	{
		if (strID == arrData[i][0])
		{
			lstControl.options[lstControl.length] = new Option(arrData[i][2], arrData[i][1]);
		}
	}
}
//-->