var where = new Array(35); function comefrom(loca,locacity) { this.loca = loca; this.locacity = locacity; } where[0]= new comefrom("0@省份","0@城市"); where[1] = new comefrom("1@北京","0@请选择|36@东城|37@西城|38@崇文|39@宣武|40@朝阳|41@丰台|42@石景山|43@海淀|44@门头沟|45@房山|46@通州|47@顺义|48@昌平|49@大兴|50@平谷|51@怀柔|52@密云|53@延庆"); where[2] = new comefrom("2@上海","0@请选择|54@黄浦|55@卢湾|56@徐汇|57@长宁|58@静安|59@普陀|60@闸北|61@虹口|62@杨浦|63@闵行|64@宝山|65@嘉定|66@浦东|67@金山|68@松江|69@青浦|70@南汇|71@奉贤|72@崇明"); where[3] = new comefrom("3@天津","0@请选择|73@和平|74@东丽|75@河东|76@西青|77@河西|78@津南|79@南开|80@北辰|81@河北|82@武清|83@红挢|84@塘沽|85@汉沽|86@大港|87@宁河|88@静海|89@宝坻|90@蓟县"); where[4] = new comefrom("4@重庆","0@请选择|91@万州|92@涪陵|93@渝中|94@大渡口|95@江北|96@沙坪坝|97@九龙坡|98@南岸|99@北碚|100@万盛|101@双挢|102@渝北|103@巴南|104@黔江|105@长寿|106@綦江|107@潼南|108@铜梁|109@大足|110@荣昌|111@壁山|112@梁平|113@城口|114@丰都|115@垫江|116@武隆|117@忠县|118@开县|119@云阳|120@奉节|121@巫山|122@巫溪|123@石柱|124@秀山|125@酉阳|126@彭水|127@江津|128@合川|129@永川|130@南川"); where[5] = new comefrom("5@河北","0@请选择|131@石家庄|132@邯郸|133@邢台|134@保定|135@张家口|136@承德|137@廊坊|138@唐山|139@秦皇岛|140@沧州|141@衡水"); where[6] = new comefrom("6@山西","0@请选择|142@太原|143@大同|144@阳泉|145@长治|146@晋城|147@朔州|148@吕梁|149@忻州|150@晋中|151@临汾|152@运城"); where[7] = new comefrom("7@内蒙古","0@请选择|153@呼和浩特|154@包头|155@乌海|156@赤峰|157@呼伦贝尔盟|158@阿拉善盟|159@哲里木盟|160@兴安盟|161@乌兰察布盟|162@锡林郭勒盟|163@巴彦淖尔盟|164@伊克昭盟"); where[8] = new comefrom("8@辽宁","0@请选择|165@沈阳|166@大连|167@鞍山|168@抚顺|169@本溪|170@丹东|171@锦州|172@营口|173@阜新|174@辽阳|175@盘锦|176@铁岭|177@朝阳|178@葫芦岛"); where[9] = new comefrom("9@吉林","0@请选择|179@长春|180@吉林|181@四平|182@辽源|183@通化|184@白山|185@松原|186@白城|187@延边"); where[10] = new comefrom("10@黑龙江","0@请选择|188@哈尔滨|189@齐齐哈尔|190@牡丹江|191@佳木斯|192@大庆|193@绥化|194@鹤岗|195@鸡西|196@黑河|197@双鸭山|198@伊春|199@七台河|200@大兴安岭"); where[11] = new comefrom("11@江苏","0@请选择|201@南京|202@镇江|203@苏州|204@南通|205@扬州|206@盐城|207@徐州|208@连云港|209@常州|210@无锡|211@宿迁|212@泰州|213@淮安"); where[12] = new comefrom("12@浙江","0@请选择|214@杭州|215@宁波|216@温州|217@嘉兴|218@湖州|219@绍兴|220@金华|221@衢州|222@舟山|223@台州|224@丽水"); where[13] = new comefrom("13@安徽","0@请选择|225@合肥|226@芜湖|227@蚌埠|228@马鞍山|229@淮北|230@铜陵|232@黄山|233@滁州|234@宿州|235@池州|236@淮南|237@巢湖|238@阜阳|239@六安|240@宣城|241@亳州"); where[14] = new comefrom("14@福建","0@请选择|242@福州|243@厦门|244@莆田|245@三明|246@泉州|247@漳州|248@南平|249@龙岩|250@宁德"); where[15] = new comefrom("15@江西","0@请选择|251@南昌市|252@景德镇|253@九江|254@鹰潭|255@萍乡|256@新馀|257@赣州|258@吉安|259@宜春|260@抚州|261@上饶"); where[16] = new comefrom("16@山东","0@请选择|262@济南|263@青岛|264@淄博|265@枣庄|266@东营|267@烟台|268@潍坊|269@济宁|270@泰安|271@威海|272@日照|273@莱芜|274@临沂|275@德州|276@聊城|277@滨州|278@菏泽"); where[17] = new comefrom("17@河南","0@请选择|279@郑州|280@开封|281@洛阳|282@平顶山|283@安阳|284@鹤壁|285@新乡|286@焦作|287@濮阳|288@许昌|289@漯河|290@三门峡|291@南阳|292@商丘|293@信阳|294@周口|295@驻马店|296@济源"); where[18] = new comefrom("18@湖北","0@请选择|297@武汉|298@宜昌|299@荆州|300@襄樊|301@黄石|302@荆门|303@黄冈|304@十堰|305@恩施|306@潜江|307@天门|308@仙桃|309@随州|310@咸宁|311@孝感|312@鄂州"); where[19] = new comefrom("19@湖南","0@请选择|313@长沙|314@常德|315@株洲|316@湘潭|317@衡阳|318@岳阳|319@邵阳|320@益阳|321@娄底|322@怀化|323@郴州|324@永州|325@湘西|326@张家界"); where[20] = new comefrom("20@广东","0@请选择|327@广州|328@深圳|329@珠海|330@汕头|331@东莞|332@中山|333@佛山|334@韶关|335@江门|336@湛江|337@茂名|338@肇庆|339@惠州|340@梅州|341@汕尾|342@河源|343@阳江|344@清远|345@潮州|346@揭阳|347@云浮"); where[21] = new comefrom("21@广西","0@请选择|348@南宁|349@柳州|350@桂林|351@梧州|352@北海|353@防城港|354@钦州|356@贵港|357@玉林|358@南宁地区|359@柳州地区|360@贺州|361@百色|362@河池"); where[22] = new comefrom("22@海南","0@请选择|363@海口|364@三亚"); where[23] = new comefrom("23@四川","0@请选择|365@成都|366@绵阳|367@德阳|368@自贡|369@攀枝花|370@广元|371@内江|372@乐山|373@南充|374@宜宾|375@广安|376@达川|377@雅安|378@眉山|379@甘孜|380@凉山|381@泸州"); where[24] = new comefrom("24@贵州","0@请选择|382@贵阳|383@六盘水|384@遵义|385@安顺|386@铜仁|387@黔西南|388@毕节|389@黔东南|390@黔南"); where[25] = new comefrom("25@云南","0@请选择|391@昆明|392@大理|393@曲靖|394@玉溪|395@昭通|396@楚雄|397@红河|398@文山|399@思茅|400@西双版纳|401@保山|402@德宏|403@丽江|404@怒江|405@迪庆|406@临沧"); where[26] = new comefrom("26@西藏","0@请选择|407@拉萨|408@日喀则|409@山南|410@林芝|411@昌都|412@阿里|413@那曲"); where[27] = new comefrom("27@陕西","0@请选择|414@西安|415@宝鸡|416@咸阳|417@铜川|418@渭南|419@延安|420@榆林|421@汉中|422@安康|423@商洛"); where[28] = new comefrom("28@甘肃","0@请选择|424@兰州|425@嘉峪关|426@金昌|427@白银|428@天水|429@酒泉|430@张掖|431@武威|432@定西|433@陇南|434@平凉|435@庆阳|436@临夏|437@甘南"); where[29] = new comefrom("29@宁夏","0@请选择|438@银川|439@石嘴山|440@吴忠|441@固原"); where[30] = new comefrom("30@青海","0@请选择|442@西宁|443@海东|444@海南|445@海北|446@黄南|447@玉树|448@果洛|449@海西"); where[31] = new comefrom("31@新疆","0@请选择|450@乌鲁木齐|451@石河子|452@克拉玛依|453@伊犁|454@巴音郭勒|455@昌吉|456@克孜勒苏柯尔克孜|457@博尔塔拉|458@吐鲁番|459@哈密|460@喀什|461@和田|462@阿克苏"); where[32] = new comefrom("32@香港","0@请选择"); where[33] = new comefrom("33@澳门","0@请选择"); where[34] = new comefrom("34@台湾","0@请选择|463@台北|464@高雄|465@台中|466@台南|467@屏东|468@南投|469@云林|470@新竹|471@彰化|472@苗栗|473@嘉义|474@花莲|475@园|476@宜兰|477@基隆|478@台东|479@金门|480@马祖|481@澎湖"); where[35] = new comefrom("35@海外","0@请选择|482@北美洲|483@南美洲|484@亚洲|485@非洲|486@欧洲|487@大洋洲"); var ArrProv,xTempProv; var ArrCity,xTempCity; function select() { with(document.myform.Prov) { var loca2 = options[selectedIndex].value+"@"+options[selectedIndex].text; document.myform.Photo_ProvID.value=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.myform.City) { length = loca3.length; xTempCity=loca3[j]; ArrCity=xTempCity.split("@"); options[j].text = ArrCity[1]; options[j].value = ArrCity[0]; xTempCity=options[selectedIndex].value; ArrCity=xTempCity.split("@"); document.myform.Photo_CityID.value= ArrCity[0]; } } break; } } } function select0() { with(document.myform.Prov_0) { var loca2 = options[selectedIndex].value+"@"+options[selectedIndex].text; document.myform.Photo_ProvID_0.value=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.myform.City_0) { length = loca3.length; xTempCity=loca3[j]; ArrCity=xTempCity.split("@"); options[j].text = ArrCity[1]; options[j].value = ArrCity[0]; xTempCity=options[selectedIndex].value; ArrCity=xTempCity.split("@"); document.myform.Photo_CityID_0.value= ArrCity[0]; } } break; } } } function select1() { with(document.myform.Prov_1) { var loca2 = options[selectedIndex].value+"@"+options[selectedIndex].text; document.myform.Photo_ProvID_1.value=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.myform.City_1) { length = loca3.length; xTempCity=loca3[j]; ArrCity=xTempCity.split("@"); options[j].text = ArrCity[1]; options[j].value = ArrCity[0]; xTempCity=options[selectedIndex].value; ArrCity=xTempCity.split("@"); document.myform.Photo_CityID_1.value= ArrCity[0]; } } break; } } } function select2() { with(document.myform.Prov_2) { var loca2 = options[selectedIndex].value+"@"+options[selectedIndex].text; document.myform.Photo_ProvID_2.value=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.myform.City_2) { length = loca3.length; xTempCity=loca3[j]; ArrCity=xTempCity.split("@"); options[j].text = ArrCity[1]; options[j].value = ArrCity[0]; xTempCity=options[selectedIndex].value; ArrCity=xTempCity.split("@"); document.myform.Photo_CityID_2.value= ArrCity[0]; } } break; } } } function init0() { with(document.myform.Prov_0) { length = where.length; for(k=0;k