    function presidence(pos){
        p = new Array();
        p[0] = "";
        p[1] = "台北市";
        p[2] = "基隆市";
        p[3] = "台北縣";
        p[4] = "宜蘭縣";
        p[5] = "桃園縣";
        p[6] = "新竹市";
        p[7] = "新竹縣";
        p[8] = "苗栗縣";
        p[9] = "台中市";
        p[10] = "台中縣";
        p[11] = "彰化縣";
        p[12] = "南投縣";
        p[13] = "嘉義市";
        p[14] = "嘉義縣";
        p[15] = "雲林縣";
        p[16] = "台南市";
        p[17] = "台南縣";
        p[18] = "高雄市";
        p[19] = "高雄縣";
        p[20] = "澎湖縣";
        p[21] = "屏東縣";
        p[22] = "台東縣";
        p[23] = "花蓮縣";
        p[24] = "金門縣";
        p[25] = "連江縣";
        p[26] = "南海諸島";
        p[27] = "香港地區";
        p[28] = "澳門地區";
        p[29] = "新加坡";
        p[30] = "馬來西亞";
        p[31] = "內地地區";
        p[32] = "歐洲";
        p[33] = "北美洲";
        p[34] = "中南美洲";
        p[35] = "亞洲及大洋洲";
        p[36] = "非洲地區";

        return p[pos];
    }

    function zipcode(str){
        var strlen = str.length;
        var zip = str.substr(strlen - 3, 3);
        return zip;
    }
	var address = ' ';
    function changecity(city_index, objSelect, objTarget) {
		var area_name = ' ';		
		relate(city_index, objSelect);
        objSelect.disabled = false;
		address = objTarget.value;
        objTarget.value = presidence(city_index) + objTarget.value;
    }

	function changearea(index, value, objCity, objTarget) {
		zip = zipcode(value);
		objTarget.value = zip + presidence(objCity.value) + value.substr(0, value.length-3) + address;
	}

    function relate(city_index, objSelect) {
        if(city_index==0) { // default category item 
            a = new Array(); 
            a[1] = new Option("選擇地區", "");
        }

        if(city_index==1) { // 台北市 category items --> 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("中正區", "中正區100"); 
            a[3] = new Option("大同區", "大同區103"); 
            a[4] = new Option("中山區", "中山區104"); 
            a[5] = new Option("松山區", "松山區105"); 
            a[6] = new Option("大安區", "大安區106"); 
            a[7] = new Option("萬華區", "萬華區108"); 
            a[8] = new Option("信義區", "信義區110"); 
            a[9] = new Option("士林區", "士林區111"); 
            a[10] = new Option("北投區" ,"北投區112"); 
            a[11] = new Option("內湖區", "內湖區114"); 
            a[12] = new Option ("南港區", "南港區115"); 
            a[13] = new Option ("文山區", "文山區116"); 
        } 

        if(city_index==2) { // 基隆市 category items --> 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("仁愛區", "仁愛區200"); 
            a[3] = new Option("信義區", "信義區201"); 
            a[4] = new Option("中正區", "中正區202"); 
            a[5] = new Option("中山區", "中山區203"); 
            a[6] = new Option("安樂區", "安樂區204"); 
            a[7] = new Option("暖暖區", "暖暖區205"); 
            a[8] = new Option("七堵區", "七堵區206"); 
        }

        if(city_index==3) { // 台北縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("萬里鄉", "萬里鄉207"); 
            a[3] = new Option("金山鄉", "金山鄉208"); 
            a[4] = new Option("板橋市", "板橋市220"); 
            a[5] = new Option("汐止市", "汐止市221"); 
            a[6] = new Option("深坑鄉", "深坑鄉222"); 
            a[7] = new Option("石碇鄉", "石碇鄉223"); 
            a[8] = new Option("瑞芳鎮", "瑞芳鎮224"); 
            a[9] = new Option("平溪鄉", "平溪鄉226"); 
            a[10] = new Option("雙溪鄉", "雙溪鄉227");
            a[11] = new Option("貢寮鄉", "貢寮鄉228");
            a[12] = new Option("新店市", "新店市231");
            a[13] = new Option("坪林鄉", "坪林鄉232");
            a[14] = new Option("烏來鄉", "烏來鄉233");
            a[15] = new Option("永和市", "永和市234");
            a[16] = new Option("中和市", "中和市235");
            a[17] = new Option("土城市", "土城市236"); 
            a[18] = new Option("三峽鎮", "三峽鎮237"); 
            a[19] = new Option("樹林市", "樹林市238"); 
            a[20] = new Option("鶯歌鎮", "鶯歌鎮239"); 
            a[21] = new Option("三重市", "三重市241"); 
            a[22] = new Option("新莊市", "新莊市242"); 
            a[23] = new Option("泰山鄉", "泰山鄉243"); 
            a[24] = new Option("林口鄉", "林口鄉244"); 
            a[25] = new Option("蘆洲市", "蘆洲市247"); 
            a[26] = new Option("五股鄉", "五股鄉248"); 
            a[27] = new Option("八里鄉", "八里鄉249"); 
            a[28] = new Option("淡水鎮", "淡水鎮251"); 
            a[29] = new Option("三芝鄉", "三芝鄉252"); 
            a[30] = new Option("石門鄉", "石門鄉253"); 
        }
            
        if(city_index==4) { // 宜蘭縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("宜蘭市", "宜蘭市260");
            a[3] = new Option("頭城鎮", "頭城鎮261");
            a[4] = new Option("礁溪鄉", "礁溪鄉262");
            a[5] = new Option("狀圍鄉", "狀圍鄉263");
            a[6] = new Option("員山鄉", "員山鄉264");
            a[7] = new Option("羅東鎮", "羅東鎮265");
            a[8] = new Option("三星鄉", "三星鄉266");
            a[9] = new Option("大同鄉", "大同鄉267");
            a[10] = new Option("五結鄉", "五結鄉268");
            a[11] = new Option("冬山鄉", "冬山鄉269");
            a[12] = new Option("蘇澳鄉", "蘇澳鄉270");
            a[13] = new Option("南澳鄉", "南澳鄉272");
        }
                    
        if(city_index==5) { // 桃園縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("中壢市", "中壢市320");
            a[3] = new Option("平鎮市", "平鎮市324");
            a[4] = new Option("龍潭鄉", "龍潭鄉325");
            a[5] = new Option("楊梅鎮", "楊梅鎮326");
            a[6] = new Option("新屋鄉", "新屋鄉327");
            a[7] = new Option("觀音鄉", "觀音鄉328");
            a[8] = new Option("桃園市", "桃園市330");
            a[9] = new Option("龜山鄉", "龜山鄉333");
            a[10] = new Option("八德市", "八德市334");
            a[11] = new Option("大溪鎮", "大溪鎮335");
            a[12] = new Option("復興鄉", "復興鄉336");
            a[13] = new Option("大園鄉", "大園鄉337");
            a[14] = new Option("蘆竹鄉", "蘆竹鄉338");
        }

        if(city_index==6) { // 新竹市 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("新竹市", "300"); 
        }
            
        if(city_index==7) { // 新竹縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("竹北市", "竹北市302");
            a[3] = new Option("湖口鄉", "湖口鄉303");
            a[4] = new Option("新豐鄉", "新豐鄉304");
            a[5] = new Option("新埔鎮", "新埔鎮305");
            a[6] = new Option("關西鎮", "關西鎮306");
            a[7] = new Option("芎林鄉", "芎林鄉307");
            a[8] = new Option("寶山鄉", "寶山鄉308");
            a[9] = new Option("竹東鎮", "竹東鎮310");
            a[10] = new Option("五峰鄉", "五峰鄉311");
            a[11] = new Option("橫山鄉", "橫山鄉312");
            a[12] = new Option("尖石鄉", "尖石鄉313");
            a[13] = new Option("北埔鄉", "北埔鄉314");
            a[14] = new Option("峨眉鄉", "峨眉鄉315");
        }

        if(city_index==8) { // 苗栗縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("竹南鎮", "竹南鎮350");
            a[3] = new Option("頭份鎮", "頭份鎮351");
            a[4] = new Option("三灣鄉", "三灣鄉352");
            a[5] = new Option("南庄鄉", "南庄鄉353");
            a[6] = new Option("獅潭鄉", "獅潭鄉354");
            a[7] = new Option("後龍鎮", "後龍鎮356");
            a[8] = new Option("通宵鎮", "通宵鎮357");
            a[9] = new Option("苑裡鎮", "苑裡鎮358");
            a[10] = new Option("苗栗市", "苗栗市360");
            a[11] = new Option("造橋鄉", "造橋鄉361");
            a[12] = new Option("頭屋鄉", "頭屋鄉362");
            a[13] = new Option("公館鄉", "公館鄉363");
            a[14] = new Option("大湖鄉", "大湖鄉364");
            a[15] = new Option("泰安鄉", "泰安鄉365");
            a[16] = new Option("銅鑼鄉", "銅鑼鄉366");
            a[17] = new Option("三義鄉", "三義鄉367");
            a[18] = new Option("西湖鄉", "西湖鄉368");
            a[19] = new Option("卓蘭鎮", "卓蘭鎮369");
        }
            
        if(city_index==9) { // 台中市 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("中區", "中區400");
            a[3] = new Option("東區", "東區401");
            a[4] = new Option("南區", "南區402");
            a[5] = new Option("西區", "西區403");
            a[6] = new Option("北區", "北區404");
            a[7] = new Option("北屯區", "北屯區406"); 
            a[8] = new Option("西屯區", "西屯區407"); 
            a[9] = new Option("南屯區", "南屯區408"); 
        }
            
        if(city_index==10) { // 台中縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("太平市", "太平市411");
            a[3] = new Option("大里市", "大里市412");
            a[4] = new Option("霧峰鄉", "霧峰鄉413");
            a[5] = new Option("烏日鄉", "烏日鄉414");
            a[6] = new Option("豐原市", "豐原市420");
            a[7] = new Option("后里鄉", "后里鄉421");
            a[8] = new Option("石岡鄉", "石岡鄉422");
            a[9] = new Option("東勢鎮", "東勢鎮423");
            a[10] = new Option("和平鄉", "和平鄉424");
            a[11] = new Option("新社鄉", "新社鄉426");
            a[12] = new Option("潭子鄉", "潭子鄉427");
            a[13] = new Option("大雅鄉", "大雅鄉428");
            a[14] = new Option("神岡鄉", "神岡鄉429");
            a[15] = new Option("大肚鄉", "大肚鄉432");
            a[16] = new Option("沙鹿鎮", "沙鹿鎮433");
            a[17] = new Option("龍井鄉", "龍井鄉434");
            a[18] = new Option("梧棲鎮", "梧棲鎮435");
            a[19] = new Option("清水鎮", "清水鎮436");
            a[20] = new Option("大甲鎮", "大甲鎮437");
            a[21] = new Option("外埔鄉", "外埔鄉438");
            a[22] = new Option("大安鄉", "大安鄉439");
        }
            
        if(city_index==11) { // 彰化縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("彰化市", "彰化市500");
            a[3] = new Option("芬園鄉", "芬園鄉502");
            a[4] = new Option("花壇鄉", "花壇鄉503");
            a[5] = new Option("秀水鄉", "秀水鄉504");
            a[6] = new Option("鹿港鎮", "鹿港鎮505");
            a[7] = new Option("福興鄉", "福興鄉506");
            a[8] = new Option("線西鄉", "線西鄉507");
            a[9] = new Option("和美鎮", "和美鎮508");
            a[10] = new Option("伸港鄉", "伸港鄉509");
            a[11] = new Option("員林鎮", "員林鎮510");
            a[12] = new Option("社頭鄉", "社頭鄉511");
            a[13] = new Option("永靖鄉", "永靖鄉512");
            a[14] = new Option("埔心鄉", "埔心鄉513");
            a[15] = new Option("溪湖鎮", "溪湖鎮514");
            a[16] = new Option("大村鄉", "大村鄉515");
            a[17] = new Option("埔鹽鄉", "埔鹽鄉516");
            a[18] = new Option("田中鎮", "田中鎮520");
            a[19] = new Option("北斗鎮", "北斗鎮521");
            a[20] = new Option("田尾鄉", "田尾鄉522");
            a[21] = new Option("埤頭鄉", "埤頭鄉523");
            a[22] = new Option("溪州鄉", "溪州鄉524");
            a[23] = new Option("竹塘鄉", "竹塘鄉525");
            a[24] = new Option("二林鎮", "二林鎮526");
            a[25] = new Option("大城鄉", "大城鄉527");
            a[26] = new Option("芳苑鄉", "芳苑鄉528");
            a[27] = new Option("二水鄉", "二水鄉600");
        }
            
        if(city_index==12) { // 南投縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("南投市", "南投市540");
            a[3] = new Option("中寮鄉", "中寮鄉541");
            a[4] = new Option("草屯鎮", "草屯鎮542");
            a[5] = new Option("國姓鄉", "國姓鄉544");
            a[6] = new Option("埔里鎮", "埔里鎮545");
            a[7] = new Option("仁愛鄉", "仁愛鄉546");
            a[8] = new Option("名間鄉", "名間鄉551");
            a[9] = new Option("集集鎮", "集集鎮552");
            a[10] = new Option("水里鄉", "水里鄉553");
            a[11] = new Option("魚池鄉", "魚池鄉555");
            a[12] = new Option("信義鄉", "信義鄉556");
            a[13] = new Option("竹山鎮", "竹山鎮557");
            a[14] = new Option("鹿谷鄉", "鹿谷鄉558");
        }
            
        if(city_index==13) { // 嘉義市 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("嘉義市", "600"); 
        }
            
        if(city_index==14) { // 嘉義縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("番路鄉", "番路鄉602");
            a[3] = new Option("梅山鄉", "梅山鄉603");
            a[4] = new Option("竹崎鄉", "竹崎鄉604");
            a[5] = new Option("阿里山鄉", "阿里山鄉605");
            a[6] = new Option("中埔鄉", "中埔鄉606");
            a[7] = new Option("大埔鄉", "大埔鄉607");
            a[8] = new Option("水上鄉", "水上鄉608");
            a[9] = new Option("鹿草鄉", "鹿草鄉611");
            a[10] = new Option("太保市", "太保市612");
            a[11] = new Option("朴子市", "朴子市613");
            a[12] = new Option("東石鄉", "東石鄉614");
            a[13] = new Option("六腳鄉", "六腳鄉615");
            a[14] = new Option("新港鄉", "新港鄉616");
            a[15] = new Option("民雄鄉", "民雄鄉621");
            a[16] = new Option("大林鎮", "大林鎮622");
            a[17] = new Option("溪口鄉", "溪口鄉623");
            a[18] = new Option("義竹鄉", "義竹鄉624");
            a[19] = new Option("布袋鎮", "布袋鎮625");
        }
            
        if(city_index==15) { // 雲林縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("斗南鎮", "斗南鎮630");
            a[3] = new Option("大埤鄉", "大埤鄉631");
            a[4] = new Option("虎尾鎮", "虎尾鎮632");
            a[5] = new Option("土庫鎮", "土庫鎮633");
            a[6] = new Option("褒忠鄉", "褒忠鄉634");
            a[7] = new Option("東勢鄉", "東勢鄉635");
            a[8] = new Option("臺西鄉", "臺西鄉636");
            a[9] = new Option("崙背鄉", "崙背鄉637");
            a[10] = new Option("麥寮鄉", "麥寮鄉638");
            a[11] = new Option("斗六市", "斗六市640");
            a[12] = new Option("林內鄉", "林內鄉643");
            a[13] = new Option("古坑鄉", "古坑鄉646");
            a[14] = new Option("薊桐鄉", "薊桐鄉647");
            a[15] = new Option("西螺鎮", "西螺鎮648");
            a[16] = new Option("二崙鄉", "二崙鄉649");
            a[17] = new Option("北港鎮", "北港鎮651");
            a[18] = new Option("水林鄉", "水林鄉652");
            a[19] = new Option("口湖鄉", "口湖鄉653");
            a[20] = new Option("四湖鄉", "四湖鄉654");
            a[21] = new Option("元長鄉", "元長鄉655");
        }
        
        if(city_index==16) { // 台南市 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("中區", "中區700");
            a[3] = new Option("東區", "東區701");
            a[4] = new Option("南區", "南區702");
            a[5] = new Option("西區", "西區703");
            a[6] = new Option("北區", "北區704");
            a[7] = new Option("安平區", "安平區708"); 
            a[8] = new Option("安南區", "安南區709"); 
        }

        if(city_index==17) { // 台南縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("永康市", "永康市710");
            a[3] = new Option("歸仁鄉", "歸仁鄉711");
            a[4] = new Option("新化鎮", "新化鎮712");
            a[5] = new Option("左鎮鄉", "左鎮鄉713");
            a[6] = new Option("玉井鄉", "玉井鄉714");
            a[7] = new Option("楠西鄉", "楠西鄉715");
            a[8] = new Option("南化鄉", "南化鄉716");
            a[9] = new Option("仁德鄉", "仁德鄉717");
            a[10] = new Option("關廟鄉", "關廟鄉718");
            a[11] = new Option("龍崎鄉", "龍崎鄉719");
            a[12] = new Option("官田鄉", "官田鄉720");
            a[13] = new Option("麻豆鎮", "麻豆鎮721");
            a[14] = new Option("佳里鎮", "佳里鎮722");
            a[15] = new Option("西港鄉", "西港鄉723");
            a[16] = new Option("七股鄉", "七股鄉724");
            a[17] = new Option("將軍鄉", "將軍鄉725");
            a[18] = new Option("學甲鎮", "學甲鎮726");
            a[19] = new Option("北門鄉", "北門鄉727");
            a[20] = new Option("新營市", "新營市730");
            a[21] = new Option("後壁鄉", "後壁鄉731");
            a[22] = new Option("白河鎮", "白河鎮732");
            a[23] = new Option("東山鄉", "東山鄉733");
            a[24] = new Option("六甲鄉", "六甲鄉734");
            a[25] = new Option("下營鄉", "下營鄉735");
            a[26] = new Option("柳營鄉", "柳營鄉736");
            a[27] = new Option("鹽水鎮", "鹽水鎮737");
            a[28] = new Option("善化鎮", "善化鎮741");
            a[29] = new Option("大內鄉", "大內鄉742");
            a[30] = new Option("山上鄉", "山上鄉743");
            a[31] = new Option("新市鄉", "新市鄉744");
            a[32] = new Option("安定鄉", "安定鄉745");
        }

        if(city_index==18) { // 高雄市 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("新興區", "新興區800"); 
            a[3] = new Option("前金區", "前金區801"); 
            a[4] = new Option("苓雅區", "苓雅區802"); 
            a[5] = new Option("鹽埕區", "鹽埕區803"); 
            a[6] = new Option("鼓山區", "鼓山區804"); 
            a[7] = new Option("旗津區", "旗津區805"); 
            a[8] = new Option("前鎮區", "前鎮區806"); 
            a[9] = new Option("三民區", "三民區807"); 
            a[10] = new Option("楠梓區", "楠梓區811"); 
            a[11] = new Option("小港區", "小港區812"); 
            a[12] = new Option("左營區", "左營區813"); 
        }

        if(city_index==19) { // 高雄縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("仁武鄉", "仁武鄉814");
            a[3] = new Option("大社鄉", "大社鄉815");
            a[4] = new Option("岡山鎮", "岡山鎮820");
            a[5] = new Option("路竹鄉", "路竹鄉821");
            a[6] = new Option("阿蓮鄉", "阿蓮鄉822");
            a[7] = new Option("田寮鄉", "田寮鄉823");
            a[8] = new Option("燕巢鄉", "燕巢鄉824");
            a[9] = new Option("橋頭鄉", "橋頭鄉825");
            a[10] = new Option("梓官鄉", "梓官鄉826");
            a[11] = new Option("彌陀鄉", "彌陀鄉827");
            a[12] = new Option("永安鄉", "永安鄉828");
            a[13] = new Option("湖內鄉", "湖內鄉829");
            a[14] = new Option("鳳山市", "鳳山市830");
            a[15] = new Option("大寮鄉", "大寮鄉831");
            a[16] = new Option("林園鄉", "林園鄉832");
            a[17] = new Option("鳥松鄉", "鳥松鄉833");
            a[18] = new Option("大樹鄉", "大樹鄉840");
            a[19] = new Option("旗山鎮", "旗山鎮842");
            a[20] = new Option("美濃鎮", "美濃鎮843");
            a[21] = new Option("六龜鄉", "六龜鄉844");
            a[22] = new Option("內門鄉", "內門鄉845");
            a[23] = new Option("杉林鄉", "杉林鄉846");
            a[24] = new Option("甲仙鄉", "甲仙鄉847");
            a[25] = new Option("桃源鄉", "桃源鄉848");
            a[26] = new Option("三民鄉", "三民鄉849");
            a[27] = new Option("茂林鄉", "茂林鄉851");
            a[28] = new Option("茄萣鄉", "茄萣鄉852");
        }

        if(city_index==20) { // 澎湖縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("馬公市", "馬公市880");
            a[3] = new Option("西嶼鄉", "西嶼鄉881");
            a[4] = new Option("望安鄉", "望安鄉882");
            a[5] = new Option("七美鄉", "七美鄉883");
            a[6] = new Option("白沙鄉", "白沙鄉884");
            a[7] = new Option("湖西鄉", "湖西鄉885");
        }

        if(city_index==21) { // 屏東縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("屏東市", "屏東市900");
            a[3] = new Option("三地門鄉", "三地門鄉901");
            a[4] = new Option("霧臺鄉", "霧臺鄉902");
            a[5] = new Option("瑪家鄉", "瑪家鄉903");
            a[6] = new Option("九如鄉", "九如鄉904");
            a[7] = new Option("里港鄉", "里港鄉905");
            a[8] = new Option("高樹鄉", "高樹鄉906");
            a[9] = new Option("鹽埔鄉", "鹽埔鄉907");
            a[10] = new Option("長治鄉", "長治鄉908");
            a[11] = new Option("麟洛鄉", "麟洛鄉909");
            a[12] = new Option("竹田鄉", "竹田鄉911");
            a[13] = new Option("內埔鄉", "內埔鄉912");
            a[14] = new Option("萬丹鄉", "萬丹鄉913");
            a[15] = new Option("潮州鎮", "潮州鎮920");
            a[16] = new Option("泰武鄉", "泰武鄉921");
            a[17] = new Option("來義鄉", "來義鄉922");
            a[18] = new Option("萬巒鄉", "萬巒鄉923");
            a[19] = new Option("崁頂鄉", "崁頂鄉924");
            a[20] = new Option("新埤鄉", "新埤鄉925");
            a[21] = new Option("南州鄉", "南州鄉926");
            a[22] = new Option("林邊鄉", "林邊鄉927");
            a[23] = new Option("東港鎮", "東港鎮928");
            a[24] = new Option("琉球鄉", "琉球鄉929");
            a[25] = new Option("佳冬鄉", "佳冬鄉931");
            a[26] = new Option("新園鄉", "新園鄉932");
            a[27] = new Option("枋寮鄉", "枋寮鄉940");
            a[28] = new Option("枋山鄉", "枋山鄉941");
            a[29] = new Option("春日鄉", "春日鄉942");
            a[30] = new Option("獅子鄉", "獅子鄉943");
            a[31] = new Option("車城鄉", "車城鄉944");
            a[32] = new Option("牡丹鄉", "牡丹鄉945");
            a[33] = new Option("恆春鎮", "恆春鎮946");
            a[34] = new Option("滿州鄉", "滿州鄉947");
        }

        if(city_index==22) { // 臺東縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("臺東市", "臺東市950");
            a[3] = new Option("綠島鄉", "綠島鄉951");
            a[4] = new Option("蘭嶼鄉", "蘭嶼鄉952");
            a[5] = new Option("延平鄉", "延平鄉953");
            a[6] = new Option("卑南鄉", "卑南鄉954");
            a[7] = new Option("鹿野鄉", "鹿野鄉955");
            a[8] = new Option("關山鎮", "關山鎮956");
            a[9] = new Option("海端鄉", "海端鄉957");
            a[10] = new Option("池上鄉", "池上鄉958");
            a[11] = new Option("東河鄉", "東河鄉959");
            a[12] = new Option("成功鎮", "成功鎮961");
            a[13] = new Option("長濱鄉", "長濱鄉962");
            a[14] = new Option("太麻里鄉", "太麻里鄉963");
            a[15] = new Option("金峰鄉", "金峰鄉964");
            a[16] = new Option("大武鄉", "大武鄉965");
            a[17] = new Option("達仁鄉", "達仁鄉966");
        }

        if(city_index==23) { // 花蓮縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("花蓮市", "花蓮市970");
            a[3] = new Option("新城鄉", "新城鄉971");
            a[4] = new Option("秀林鄉", "秀林鄉972");
            a[5] = new Option("吉安鄉", "吉安鄉973");
            a[6] = new Option("壽豐鄉", "壽豐鄉974");
            a[7] = new Option("鳳林鎮", "鳳林鎮975");
            a[8] = new Option("光復鄉", "光復鄉976");
            a[9] = new Option("豐濱鄉", "豐濱鄉977");
            a[10] = new Option("瑞穗鄉", "瑞穗鄉978");
            a[11] = new Option("萬榮鄉", "萬榮鄉979");
            a[12] = new Option("玉里鎮", "玉里鎮981");
            a[13] = new Option("卓溪鄉", "卓溪鄉982");
            a[14] = new Option("富里鄉", "富里鄉983");
        }

        if(city_index==24) { // 金門縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("金湖鎮", "金湖鎮891");
            a[3] = new Option("金寧鄉", "金寧鄉892");
            a[4] = new Option("金城鎮", "金城鎮893");
            a[5] = new Option("烈嶼鄉", "烈嶼鄉894");
            a[6] = new Option("烏坵鄉", "烏坵鄉896");
        }

        if(city_index==25) { // 連江縣 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("南竿", "南竿209");
            a[3] = new Option("北竿", "北竿210");
            a[4] = new Option("莒光", "莒光211");
            a[5] = new Option("東引", "東引212");
        }

        if(city_index==26) { // 南海諸島 category items 
            a = new Array(); 
            a[1] = new Option("選擇地區", ""); 
            a[2] = new Option("東沙", "東沙817");
            a[3] = new Option("南沙", "南沙819");
            a[4] = new Option("釣魚台", "釣魚台290"); 
        }

        if(city_index>=27) { // 其他地區 category items 
            a = new Array(); 
            a[1] = new Option("-----", "other"); 
        }

		objSelect.length=1;

        for (i = 1; i < a.length; i++) {
            objSelect[i-1] = a[i];
        }
        objSelect[0].selected=true;
    }

