var where = new Array(35); function comefrom(loca,locacity,locavalue,locacityvalue) { this.loca = loca; this.locacity = locacity; this.locavalue=locavalue;this.locacityvalue=locacityvalue;} where[0]= new comefrom("请选择","请选择","",""); where[1]= new comefrom('安徽','|芜湖|淮南|马鞍山|安庆|宿州|阜阳|黄山|滁州|淮北|铜陵|宣城|六安|巢湖|合肥|蚌埠','34','|262|263|264|265|266|267|268|269|270|271|272|273|274|260|261'); where[2]= new comefrom('江苏','|连云港|徐州|淮安|宿迁|泰州|无锡|镇江|南京|常州|苏州|南通|扬州|常熟|淮阴','7','|7|11|12|13|15|16|18|19|20|21|22|23|256|257'); where[3]= new comefrom('江西','|上饶|南昌|景德镇|萍乡|九江|新余|鹰潭|赣州|吉安|宜春|抚州','5','|8|127|128|129|130|131|132|133|134|135|136'); where[4]= new comefrom('山东','|青岛|济南|淄博|枣庄|东营|烟台|潍坊|济宁|泰安|威海|日照|莱芜|临沂|德州|聊城|滨州|菏泽','8','|9|78|79|80|81|82|84|85|86|87|88|89|90|91|92|93|94'); where[5]= new comefrom('浙江','|台州|杭州|宁波|温州|嘉兴|湖州|绍兴|金华|衢州|舟山|丽水','13','|45|46|47|48|49|50|51|52|53|54|55'); where[6]= new comefrom('河北','|石家庄|唐山|秦皇岛|邯郸|邢台|保定|张家口|承德|沧州|廊坊|衡水','14','|56|57|58|59|60|61|62|63|64|65|66'); where[7]= new comefrom('山西','|太原|大同|阳泉|长治|晋城|朔州|晋中|运城|忻州|临汾|吕梁','15','|67|68|69|70|71|72|73|74|75|76|77'); where[8]= new comefrom('北京','|东城|西城|崇文|宣武|朝阳|丰台|石景山|海淀|门头沟|房山区|通州区|顺义区|昌平区|大兴区|怀柔区|密云县|延庆县','17','|95|96|97|98|99|100|101|102|103|104|105|106|107|108|109|112|113'); where[9]= new comefrom('黑龙江','|哈尔滨|齐齐哈尔|鸡西|鹤岗|双鸭山|大庆|伊春|佳木斯|七台河|牡丹江|黑河|绥化|大兴安岭地区','18','|114|115|116|117|118|119|120|121|122|123|124|125|126'); where[10]= new comefrom('广东','|广州|韶关|深圳|珠海|汕头|佛山|江门|湛江|茂名|肇庆|惠州|梅州|汕尾|河源|阳江|清远|东莞|中山|潮州|揭阳|云浮','20','|137|138|139|140|141|142|143|144|145|146|147|149|150|151|152|153|154|155|156|157|158'); where[11]= new comefrom('广西','|南宁|柳州|桂林|梧州|北海|防城港|钦州|贵港|玉林|百色|贺州|河池|来宾|崇左','21','|159|160|161|162|163|164|165|166|167|168|169|170|171|172'); where[12]= new comefrom('云南','|昆明|曲靖|玉溪|保山|昭通|思茅|临沧|丽江','22','|173|174|175|176|177|178|179|180'); where[13]= new comefrom('辽宁','|沈阳|大连|鞍山|抚顺|本溪|丹东|锦州|营口|阜新|辽阳|铁岭','35','|275|276|277|278|279|280|281|282|283|284|285'); where[14]= new comefrom('贵州','|贵阳|六盘水|遵义|安顺','23','|181|182|183|184'); where[15]= new comefrom('四川','|成都|自贡|攀枝花|泸州|德阳|绵阳|广元|遂宁|内江|乐山|南充|眉山|宜宾|广安|达州|雅安|巴中|资阳','24','|185|186|187|188|189|190|191|192|193|194|195|196|197|198|199|200|201|202'); where[16]= new comefrom('内蒙古','|呼和浩特|包头|乌海|赤峰|通辽|鄂尔多斯|呼伦贝尔|巴彦淖尔|乌兰察布','25','|203|204|205|206|207|208|209|210|211'); where[17]= new comefrom('宁夏 ','|银川|石嘴山|吴忠|固原|中卫','26','|212|213|214|215|216'); where[18]= new comefrom('甘肃','|兰州|嘉峪关|金昌|白银|天水|武威|张掖|平凉|酒泉|庆阳|定西|陇南','27','|217|218|219|220|221|222|223|224|225|226|227|228'); where[19]= new comefrom('湖北','|武汉|襄樊|鄂州|孝感|黄冈|黄石|咸宁|荆州|宜昌|恩施|十堰|荆门','29','|230|231|326|327|328|329|330|331|332|333|334|335'); where[20]= new comefrom('上海','|黄浦|虹口|杨浦|闸北|普陀|长宁|静安|徐汇|浦东|闵行区|奉贤区|金山区|松江区|青浦区|嘉定区|宝山区|崇明县','32','|233|234|235|236|237|238|239|240|241|242|243|244|245|246|247|248|249'); where[21]= new comefrom('陕西','|宝鸡','31','|232'); where[22]= new comefrom('福建','|福州|厦门|宁德|泉州|漳州|龙岩','33','|250|251|252|253|254|255'); where[23]= new comefrom('吉林','|长春|吉林|延吉|四平|通化|白城|辽源|前郭|浑江|梅河口','36','|286|287|288|289|290|291|292|293|294|295'); where[24]= new comefrom('河南','|郑州|安阳|新乡|许昌|平顶山|开封|南阳|洛阳|商丘|焦作|鹤壁|濮阳|周口|漯河|驻马店|三门峡','37','|296|297|298|299|300|301|302|303|304|305|306|307|308|309|310|311'); where[25]= new comefrom('湖南','|长沙|湘潭|株洲|衡阳|常德|娄底|昭阳|岳阳|怀化','38','|312|313|319|320|321|322|323|324|325'); where[26]= new comefrom('海南','|海口|三亚','39','|336|337'); where[27]= new comefrom('青海','|西宁|平安|同仁|共和|德令哈|门源|格尔木','40','|338|339|340|341|342|343|344'); where[28]= new comefrom('新疆','|库尔勒|阿克苏|喀什|奎屯|伊犁|克拉玛依|乌鲁木齐|石河子|昌吉|吐鲁番','41','|349|350|351|352|353|354|345|346|347|348'); where[29]= new comefrom('','','48',''); where[30]= new comefrom('天津','|天津','42','|356'); where[31]= new comefrom('重庆','','43',''); where[32]= new comefrom('香港','','44',''); where[33]= new comefrom('澳门','','45',''); where[34]= new comefrom('台湾','','46',''); where[35]= new comefrom('西藏','|拉萨','47','|355'); function province_select() { with(objprovince) { var loca2 = options[selectedIndex].value; } for(i = 0;i < where.length;i ++) { if (where[i].locavalue == loca2) { loca3 = (where[i].locacity).split("|"); loca4 = (where[i].locacityvalue).split("|"); for(j = 0;j < loca3.length;j++) { with(objcity) { length = loca3.length; options[j].text = loca3[j]; options[j].value = loca4[j]; }} break; } } //alert('jjjjj') //document.creator.newlocation.value=loca2+loca4; } var objprovince,objcity; function cityInit(_province,_city) { objprovince=_province; objcity=_city; with(objprovince) { length = where.length; for(k=0;k