var where = new Array(33); 
function comefrom(loca,locacity) { this.loca = loca; this.locacity = locacity; } 
where[0]= new comefrom("","");
where[1] = new comefrom("北京","|北京"); 
where[2] = new comefrom("天津","|天津"); 
where[3] = new comefrom("上海","|上海"); 
where[4] = new comefrom("重庆","|重庆"); 
where[5] = new comefrom("浙江","|杭州|宁波|舟山|温州|温岭|台州|余姚|安吉|慈溪|奉化|海盐|黄岩|湖州|嘉兴|金华|临安|丽水|瓯海|平湖|千岛湖|衢州|瑞安|绍兴|嵊州"); 
where[6] = new comefrom("福建","|福州|福安|龙岩|南平|宁德|莆田|泉州|三明|邵武|石狮|永安|武夷山|厦门|漳州"); 
where[7] = new comefrom("甘肃","|兰州|白银|定西|敦煌|甘南|金昌|酒泉|临夏|平凉|天水|武都|西峰|张掖"); 
where[8] = new comefrom("广东","|广州|深圳|珠海|汕头|汕尾|东莞|中山|佛山|韶关|江门|湛江|茂名|肇庆|惠州|梅州|河源|阳江|清远|潮州|潮阳|揭阳|云浮|澄海|开平|顺德|英德|增城"); 
where[9] = new comefrom("广西","|南宁|柳州|桂林|梧州|北海|防城港|钦州|玉林|百色|河池"); 
where[10] = new comefrom("贵州","|贵阳|安顺|毕节|都匀|凯里|六盘水|铜仁|兴义|玉屏|遵义"); 
where[11] = new comefrom("海南","|海口|儋县|陵水|琼海|三亚|通什|万宁"); 
where[12] = new comefrom("河北","|石家庄|保定|北戴河|沧州|承德|丰润|邯郸|衡水|廊坊|南戴河|秦皇岛|唐山|新城|邢台|张家口"); 
where[13] = new comefrom("黑龙江","|哈尔滨|北安|大庆|大兴安岭|鹤岗|黑河|佳木斯|鸡西|牡丹江|齐齐哈尔|七台河|双鸭山|绥化|伊春"); 
where[14] = new comefrom("河南","|郑州|安阳|鹤壁|潢川|焦作|开封|漯河|洛阳|南阳|平顶山|濮阳|三门峡|商丘|新乡|信阳|许昌|周口|驻马店"); 
where[15] = new comefrom("香港","|香港"); 
where[16] = new comefrom("湖北","|武汉|恩施|鄂州|黄岗|黄石|荆门|荆州|潜江|十堰|随州|武穴|仙桃|咸宁|襄阳|襄樊|孝感|宜昌"); 
where[17] = new comefrom("湖南","|长沙|常德|郴州|衡阳|怀化|吉首|娄底|邵阳|湘潭|益阳|岳阳|永州|张家界|株洲"); 
where[18] = new comefrom("江苏","|南京|常熟|常州|海门|淮阴|江都|江阴|昆山|连云港|南通|启东|沭阳|苏州|太仓|泰州|同里|无锡|徐州|盐城|扬州|宜兴|仪征|张家港|镇江|周庄");
where[19] = new comefrom("江西","|南昌|抚州|赣州|吉安|景德镇|井冈山|九江|庐山|萍乡|上饶|新余|宜春|鹰潭"); 
where[20] = new comefrom("安徽","|合肥|安庆|蚌埠|亳州|巢湖|滁州|阜阳|贵池|淮北|淮化|淮南|黄山|九华山|六安|马鞍山|宿州|铜陵|屯溪|芜湖|宣城"); 
where[21] = new comefrom("吉林","|长春|白城|白山|珲春|辽源|梅河|吉林|四平|松原|通化|延吉"); 
where[22] = new comefrom("辽宁","|沈阳|鞍山|本溪|朝阳|大连|丹东|抚顺|阜新|葫芦岛|锦州|辽阳|盘锦|铁岭|营口"); 
where[23] = new comefrom("澳门","|澳门"); 
where[24] = new comefrom("内蒙古","|呼和浩特|阿拉善盟|包头|赤峰|东胜|海拉尔|集宁|临河|通辽|乌海|乌兰浩特|锡林浩特"); 
where[25] = new comefrom("宁夏","|银川|固源|石嘴山|吴忠");
where[26] = new comefrom("青海","|西宁|德令哈|格尔木|共和|海东|海晏|玛沁|同仁|玉树"); 
where[27] = new comefrom("山东","|济南|青岛|滨州|兖州|德州|东营|荷泽|济宁|莱芜|聊城|临沂|蓬莱|曲阜|日照|泰安|潍坊|威海|烟台|枣庄|淄博"); 
where[28] = new comefrom("山西","|太原|长治|大同|候马|晋城|离石|临汾|宁武|朔州|忻州|阳泉|榆次|运城"); 
where[29] = new comefrom("陕西","|西安|安康|宝鸡|汉中|渭南|商州|绥德|铜川|咸阳|延安|榆林"); 
where[30] = new comefrom("四川","|成都|巴中|达安|德阳|都江堰|峨眉山|涪陵|广安|广元|九寨沟|康定|乐山|泸州|马尔康|绵阳|南充|内江|攀枝花|遂宁|汶川|西昌|雅安|宜宾|自贡"); 
where[31] = new comefrom("台湾","|台北|基隆|台南|台中"); 
where[32] = new comefrom("新疆","|乌鲁木齐|阿克苏|阿勒泰|阿图什|博乐|昌吉|东山|哈密|和田|喀什|克拉玛依|库车|库尔勒|奎屯|石河子|塔城|吐鲁番|伊宁"); 
where[33] = new comefrom("西藏","|拉萨|阿里|昌都|林芝|那曲|日喀则|山南"); 
where[34] = new comefrom("云南","|昆明|大理|保山|楚雄|大理|东川|个旧|景洪|开远|临沧|丽江|六库|潞西|曲靖|思茅|文山|西双版纳|玉溪|中甸|昭通"); 
function select() {
with(document.mainform.TPL_prov) { var loca2 = options[selectedIndex].value; }
for(i = 0;i < where.length;i ++) {
if (where[i].loca == loca2) {
loca3 = (where[i].locacity).split("|");
for(j = 0;j < loca3.length;j++) { with(document.mainform.TPL_city) { length = loca3.length; options[j].text = loca3[j]; options[j].value = loca3[j]; var loca4=options[selectedIndex].value;}}
break;
}}
document.mainform.dz.value=loca2+loca4;
}
function init() {
with(document.mainform.TPL_prov) {
length = where.length;
for(k=0;k<where.length;k++) { options[k].text = where[k].loca; options[k].value = where[k].loca; }
options[selectedIndex].text = where[0].loca; options[selectedIndex].value = where[0].loca;
}
with(document.mainform.TPL_city) {
loca3 = (where[0].locacity).split("|");
length = loca3.length;
for(l=0;l<length;l++) { options[l].text = loca3[l]; options[l].value = loca3[l]; }
options[selectedIndex].text = loca3[0]; options[selectedIndex].value = loca3[0];
}}