function selectCities(frm, ddlCountryList, ddlCityList)
{
	var cName, cityArr, cName;
	var objCountryList, objCityList, objLastName;

    objCountryList = document.getElementById(ddlCountryList);
    objCityList = document.getElementById(ddlCityList);
    
	if (objCountryList.options[objCountryList.selectedIndex].value == "") 
	{
		objCityList.options.length=0;
		objCityList.options[0] = new Option("Please select a country first.", "-1");
		objCityList.options[0].selected = true;
		return;
	}
	re = / /g;             
	cName = objCountryList.options[objCountryList.selectedIndex].value;
	cName = objCountryList.options[objCountryList.selectedIndex].value.replace(re, "_");
	cName = cName.replace("|", "");
	cName = cName + "_arr";
	cityStr = eval(cName);
	if(cityStr != "")
	{
		cityArr = eval(cityStr.split("|"));
		objCityList.options.length = cityArr.length - 1;
		objCityList.options[0] = new Option("Choose One:                 ", "");
		objCityList.options[0].selected = true;
		for(i = 0; i < cityArr.length-1; i++)
		{
			cityArr0 = eval(cityArr[i].split("--"));
			objCityList.options[i+1] = new Option(cityArr0[0], cityArr[i]);
		}
		if (cityArr.length > 0 ) 
		{
			objCityList.options[0].selected = true;
		}
	}
	else
	{
		objCityList.options.length=0;
		objCityList.options = new Option("                            ", "");
	}
}