<!--
function onChangeCountry(strCountryID, lstCounty, lstService, lstFeature)
{
	clearList(lstCounty);
	
	clearList(lstService);

	clearList(lstFeature);

	if (strCountryID == 0)
	{
		loadList(lstService, g_arrService);
	}
	else
	{
		syncList(strCountryID, lstCounty, g_arrCounty);

		syncList(strCountryID, lstService, g_arrServiceCountry);
	}
}

function onChangeCounty(strCountryID, strCountyID, lstService, lstFeature)
{
	clearList(lstService);

	clearList(lstFeature);

strCountyID=0;

	if (strCountyID != 0)
	{
		syncList(strCountyID, lstService, g_arrServiceCounty);
	}
	else if (strCountryID != 0)
	{
		syncList(strCountryID, lstService, g_arrServiceCountry);
	}
	else
	{
		loadList(lstService, g_arrService);
	}
}

function onChangeService(strServiceID, lstFeature)
{
	clearList(lstFeature);

	if (strServiceID != 0) syncList(strServiceID, lstFeature, g_arrFeature);
}

function syncList(strID, lstControl, arrData)
{
	// alert ('Looking for ' + strID);
	for (var i = 0; i < arrData.length; ++i)
	{
//		if (i <=50)
//			alert (i + ' ' + strID + ' ' + arrData[i][0] + ' ' + arrData[i][2]);
			
		if (strID == arrData[i][0] || arrData[i][0] == 0)
		{
			lstControl.options[lstControl.length] = new Option(arrData[i][2], arrData[i][1]);
		}
	}
}

function loadList(lstControl, arrData)
{
	for (var i = 0; i < arrData.length; ++i)
	{
		lstControl.options[lstControl.length] = new Option(arrData[i][1], arrData[i][0]);
	}
}

function clearList(lstControl)
{
	lstControl.length = 1;
	
	lstControl.selectedIndex = 0;
}
//-->