function GetProvince(strTheForm,strProvince,strCity,strProvinceID)
{
	strProvince = strTheForm + "." + strProvince
	strCity = strTheForm + "." + strCity
	var TheProvince = eval(strProvince)
	var TheCity = eval(strCity)
	TheCity.disabled = true
    if(Province.length != 0)
    {
        TheProvince.options.length = 0
        TheProvince.options[0] = new Option('省份','')
        TheProvince.options[0].selected = true
        var j = 1
        for(i=0;i<Province.length;i+=2)
        {
            if(Province[i] == "" || Province[i+1] == "")
            {
            	continue
            }
        	else
        	{
        		TheProvince.options[j] = new Option(Province[i+1],Province[i])
        		j++
        	}
        }
    }
    if(strProvinceID != "")
    {
    	strProvinceID = strProvinceID.toString()
    	var L_strProvinceID = strProvinceID.length
    	if(L_strProvinceID < 12)
    	{
    		for(i=0;i<12-L_strProvinceID;i++)
    		{
    			strProvinceID += "0"
    		}
    	}
    	var DefaultProvince = strProvinceID.substring(0,6)
    	var DefaultCity = strProvinceID.substring(0,9)
    	var DefaultCounty = strProvinceID.substring(0,12)
    	GetDefaultItem(TheProvince,DefaultProvince)
    	GetCity(strTheForm,strProvince,strCity,strCounty)
    	GetDefaultItem(TheCity,DefaultCity)
    	GetCounty(strTheForm,strProvince,strCity,strCounty)
    	GetDefaultItem(TheCounty,DefaultCounty)
    }
}

function GetCity(strTheForm,strProvince,strCity)
{
	strProvince = strTheForm + "." + strProvince
	strCity = strTheForm + "." + strCity
	var TheProvince = eval(strProvince)
	var TheCity = eval(strCity)
	if(TheProvince.selectedIndex != 0)
	{
		TheCity.options.length = 0
		TheCity.options[0] = new Option('城市','')
		TheCity.options[0].selected = true
		TheCity.disabled = true
		CityIndex = TheProvince.options[TheProvince.selectedIndex].value
		var j = 1
        for(i=0;i<City[CityIndex].length;i+=2)
        {
            if(City[CityIndex][i] == "" || City[CityIndex][i+1] == "")
            {
            	continue
            }
        	else
        	{
            	TheCity.options[j] = new Option(City[CityIndex][i+1],City[CityIndex][i])
            	j++
            }
        }
        if(TheCity.options.length > 1) TheCity.disabled = false
	}
	else
	{
		TheCity.options.length = 0
		TheCity.options[0] = new Option('城市','')
		TheCity.options[0].selected = true
		TheCity.disabled = true
	}
}