﻿Cset=new Array(2);
Dset=new Array(2);
C0=new Array(8);
D0=new Array(8);
Cset[0]=C0;
Dset[0]=D0;
C0[0]="0730";
D0[0]="不拘";
C0[1]="0731";
D0[1]="東區";
C0[2]="0732";
D0[2]="南區";
C0[3]="0733";
D0[3]="西區";
C0[4]="0734";
D0[4]="北區";
C0[5]="0735";
D0[5]="中區";
C0[6]="0736";
D0[6]="安平區";
C0[7]="0737";
D0[7]="安南區";
C1=new Array(32);
D1=new Array(32);
Cset[1]=C1;
Dset[1]=D1;
C1[0]="0770";
D1[0]="不拘";
C1[1]="0771";
D1[1]="新營市";
C1[2]="0772";
D1[2]="七股鄉";
C1[3]="0773";
D1[3]="下營鄉";
C1[4]="0774";
D1[4]="大內鄉";
C1[5]="0775";
D1[5]="山上鄉";
C1[6]="0779";
D1[6]="仁德鄉";
C1[7]="0779";
D1[7]="六甲鄉";
C1[8]="0779";
D1[8]="北門鄉";
C1[9]="0779";
D1[9]="左鎮鄉";
C1[10]="0779";
D1[10]="永康市";
C1[11]="0779";
D1[11]="玉井鄉";
C1[12]="0779";
D1[12]="白河鎮";
C1[13]="0779";
D1[13]="安定鄉";
C1[14]="0779";
D1[14]="西港鄉";
C1[15]="0779";
D1[15]="官田鄉";
C1[16]="0779";
D1[16]="佳里鎮";
C1[17]="0779";
D1[17]="東山鄉";
C1[18]="0779";
D1[18]="南化鄉";
C1[19]="0779";
D1[19]="後壁鄉";
C1[20]="0779";
D1[20]="柳營鄉";
C1[21]="0779";
D1[21]="將軍鄉";
C1[22]="0779";
D1[22]="麻豆鎮";
C1[23]="0779";
D1[23]="善化鎮";
C1[24]="0779";
D1[24]="新化鎮";
C1[25]="0779";
D1[25]="新市鄉";
C1[26]="0779";
D1[26]="楠西鄉";
C1[27]="0779";
D1[27]="學甲鎮";
C1[28]="0779";
D1[28]="龍崎鄉";
C1[29]="0779";
D1[29]="歸仁鄉";
C1[30]="0779";
D1[30]="關廟鄉";
C1[31]="0779";
D1[31]="鹽水鎮";


        function setShi(sheng,shi)
        {
                param=sheng.selectedIndex-1;
                  if(param>=0)
                  {
                        shi.options.length=0;
                        for(i=0;i<Cset[param].length;i++)
                        {
                                shi.options.length++;
                                shi.options[i].text=Dset[param][i];
                                shi.options[i].value=Dset[param][i];
                        }
                  }else
                  {
                     shi.options.length=0;
                     shi.options.length++;
                     shi.options[0].text="請選擇";
                     shi.options[0].value="";
                  }
        }
        function setValue(sheng,ShengValue,shi,ShiValue)
        {
			for(i=0;i<sheng.length;i++)
			{
			  if(ShengValue==sheng.options[i].value)
			  {
				sheng.options[i].selected=true;
			  }
			}
			
                	param=sheng.selectedIndex-1;
                	shi.options.length=0;
                        for(i=0;i<Cset[param].length;i++)
                        {
                                shi.options.length++;
                                shi.options[i].text=Dset[param][i];
                                shi.options[i].value=Dset[param][i];
				if(ShiValue==Dset[param][i])
				{
					shi.options[i].selected=true;
				}
                        }
        }
