subcat = new Array(); subcat1 = new Array(); subcat2 = new Array(); subcat3 = new Array(); subcat4 = new Array(); subcat5 = new Array(); function changelocation(locationid){ document.postart.city_two.length = 0; document.postart.city_two.options[0] = new Option('选择城市',''); if(document.postart.city_three){ document.postart.city_three.length = 0; document.postart.city_three.options[0] = new Option('选择城市','');} var locationid=locationid; var i; for (i=0;i <=-1; i++){ if (subcat[i][1] == locationid){ document.postart.city_two.options[document.postart.city_two.length] = new Option(subcat[i][0], subcat[i][2]);} }} function changelocation4(locationid,locationid1){ document.postart.city_three.length = 0; document.postart.city_three.options[0] = new Option('选择城市',''); var locationid=locationid; var locationid1=locationid1; var i; for (i=0;i <=-1; i++){ if (subcat4[i][2] == locationid){ if (subcat4[i][1] == locationid1){ document.postart.city_three.options[document.postart.city_three.length] = new Option(subcat4[i][0], subcat4[i][3])}}}}; function changelocation2(locationid){ if(document.getElementById('typemoneystr')){checkinfo(locationid);} if(document.postart.type_two){ document.postart.type_two.length = 0; document.postart.type_two.options[0] = new Option('选择信息',''); if(document.postart.type_three){ document.postart.type_three.length = 0; document.postart.type_three.options[0] = new Option('选择信息','')}; var locationid=locationid; var i; for (i=0;i <=-1; i++){ if (subcat2[i][1] == locationid){ document.postart.type_two.options[document.postart.type_two.length] = new Option(subcat2[i][0], subcat2[i][2]);} }}} function changelocation3(locationid,locationid1){ if(document.postart.type_three){ document.postart.type_three.length = 0; document.postart.type_three.options[0] = new Option('选择信息',''); var locationid=locationid; var locationid1=locationid1; var i; for (i=0;i <=-1; i++){ if (subcat3[i][2] == locationid){ if (subcat3[i][1] == locationid1){ document.postart.type_three.options[document.postart.type_three.length] = new Option(subcat3[i][0], subcat3[i][3]);}}}}}; function checkinfo(ID){ var ID=ID; document.getElementById('typemoneystr').innerHTML=''; document.postart.typemoney.value='0'; for(i=0;i<=-1;i++){ if(subcat5[i][0]==ID){ document.getElementById('typemoneystr').innerHTML='(此栏目为收费栏目,每次收费'+subcat5[i][1]+'积分)'; document.postart.typemoney.value=subcat5[i][1]; }}}