﻿
	function cityselectadd(formname,firststr)
	{
			document.all(formname).CityID.length = 0;
			document.all(formname).CityID.options[0] = new Option(firststr,''); 
			for (i=0; i<AreaCityList.length; i++)
			{
				document.all(formname).CityID.options[document.all(formname).CityID.length] = new Option(AreaCityList[i][0], AreaCityList[i][1]);
				}
	}
	function changecityselect(formname,locationid,firststr)
	{
			document.all(formname).BoroughID.length = 1;//初始化下拉列表 清空下拉数据
			//document.all(formname).BoroughID.options[0] = new Option(firststr,''); //给第一个值
			for (i=0; i<AreaBoroughList.length; i++)
			{
				if (AreaBoroughList[i][0] == locationid){//[0] [1] 第一列 第二列 
					document.all(formname).BoroughID.options[document.all(formname).BoroughID.length] = new Option(AreaBoroughList[i][1], AreaBoroughList[i][2]);
					}
				}
	}
	function changeboroughselect(formname,locationid,firststr)
	{
			document.all(formname).PlateID.length = 0;//初始化下拉列表 清空下拉数据
			document.all(formname).PlateID.options[0] = new Option(firststr,''); //给第一个值
			for (i=0; i<AreaPlateList.length; i++)//legth=20
			{
				if (AreaPlateList[i][0] == locationid){//[0] [1] 第一列 第二列 
					document.all(formname).PlateID.options[document.all(formname).PlateID.length] = new Option(AreaPlateList[i][1], AreaPlateList[i][2]);
					}
				}
	}
	
	
