<script language="javascript">
<!--
cityareaname=new Array(35);
cityareacode=new Array(35);
function first(preP,preC,formname,selectP,selectC)
{
a=0;
if (selectP=='01')
{ a=1;tempoption=new Option('±±¾©','±±¾©',false,true); }
else
{ tempoption=new Option('±±¾©','±±¾©'); }
eval('document.'+formname+'.'+preP+'.options[1]=tempoption;');
cityareacode[0]=new Array('0101','0102','0103','0104','0105','0106','0107','0108');
cityareaname[0]=new Array('¶«³ÇÇø','Î÷³ÇÇø','³çÎÄÇø','ÐûÎäÇø','³¯ÑôÇø','º£µíÇø','·ą́Çø','ʯ¾°É½');
if (selectP=='02')
...........................................
..............................
if (selectP=='35')
{ a=35;tempoption=new Option('̨Íå','̨Íå',false,true); }
else
{ tempoption=new Option('̨Íå','̨Íå'); }
eval('document.'+formname+'.'+preP+'.options[35]=tempoption;');
cityareacode[34]=new Array();
cityareaname[34]=new Array();
eval('document.'+formname+'.'+preP+'.options[a].selected=true;');
cityid=selectP;
if (cityid!='0')
{
b=0;for (i=0;i<cityareaname[cityid-1].length;i++)
{
if (selectC==cityareacode[cityid-1][i])
{b=i+1;tempoption=new Option(cityareaname[cityid-1][i],cityareaname[cityid-1][i],false,true);}
else
tempoption=new Option(cityareaname[cityid-1][i],cityareaname[cityid-1][i]);
eval('document.'+formname+'.'+preC+'.options[i+1]=tempoption;');
}
eval('document.'+formname+'.'+preC+'.options[b].selected=true;');
}
}
function selectcityarea(preP,preC,formname)
{
cityid=eval('document.'+formname+'.'+preP+'.selectedIndex;');
j=eval('document.'+formname+'.'+preC+'.length;');
for (i=1;i<j;i++)
{eval('document.'+formname+'.'+preC+'.options[j-i]=null;')}
if (cityid!="0"
{
for (i=0;i<cityareaname[cityid-1].length;i++)
{
tempoption=new Option(cityareaname[cityid-1][i],cityareaname[cityid-1][i]);
eval('document.'+formname+'.'+preC+'.options[i+1]=tempoption;');
}
}
}
//ÇøÓò±íµ¥½áÊø
//-->
</script>
<body>
<table>
<tr><td valign=top class=tablebody1><b>Ê¡·Ý:</b> <input type=text name=province size=18 value="">
<select name="selectp" onChange="selectcityarea('selectp','selectc','theForm');theForm.province.value=this.value;">
<option value="0" selected>ÇëÑ¡Ôñ</option>
</select>
<tr><td valign=top class=tablebody1><b>³ÇÊÐ:</b> <input type=text name="city" size=18 value="">
<select name="selectc" onChange="theForm.city.value=this.value;">
<option value="0" selected>ÇëÑ¡Ôñ</option>
</select></td></tr>
</td></tr>
</table>