var where = new Array(3); var whereValue=new Array(3); function comefrom(loca,locagamegroup) { this.loca = loca; this.locagamegroup = locagamegroup; } where[0]= new comefrom("请选择游戏大区","请选择服务器分组"); whereValue[0]=new comefrom(0,0); where[1] = new comefrom("南方区","|南方区1服"); whereValue[1] = new comefrom("1","|1"); where[2] = new comefrom("北方区","|北方区1服"); whereValue[2] = new comefrom("2","|1"); where[3] = new comefrom("永久测试区","|永久测试区"); whereValue[3] = new comefrom("3","|1"); function select() { with(document.cart.gamearea) { var loca2 = options[selectedIndex].text; } for(i = 0;i < where.length;i ++) { if (where[i].loca == loca2) { loca3 = (where[i].locagamegroup).split("|"); loca33 = (whereValue[i].locagamegroup).split("|"); for(j = 0;j < loca3.length;j++) { with(document.cart.gamegroup) { length = loca3.length; options[j].text = loca3[j]; options[j].value = loca33[j]; var loca4=options[selectedIndex].value;}} break; }} } function init() { with(document.cart.gamearea) { length = where.length; for(k=0;k0) options[k].value = whereValue[k].loca; } options[selectedIndex].text = where[0].loca; options[selectedIndex].value = whereValue[0].loca; } with(document.cart.gamegroup) { loca3 = (where[0].locagamegroup).split("|"); length = loca3.length; for(l=0;l