sel_destination = { tdestination3s: new Array(11), tdestination2obj: function() { return document.getElementById('destination2'); }, tdestination3obj: function() { return document.getElementById('destination3'); }, tdestination3ary: function(strdestination2, strdestination3) { this.tdestination2 = strdestination2; this.tdestination3 = strdestination3; }, tinit: function(strdestination2, strdestination3) { this.tdestination3s[0]= new this.tdestination3ary('美东$:$252', ''); this.tdestination3s[1]= new this.tdestination3ary('美西$:$251', ''); this.tdestination3s[2]= new this.tdestination3ary('玻璃桥$:$261', ''); this.tdestination3s[3]= new this.tdestination3ary('黄石公园$:$253', ''); this.tdestination3s[4]= new this.tdestination3ary('总统巨石$:$254', ''); this.tdestination3s[5]= new this.tdestination3ary('优胜美地$:$255', ''); this.tdestination3s[6]= new this.tdestination3ary('环球影城$:$256', ''); this.tdestination3s[7]= new this.tdestination3ary('海洋世界$:$257', ''); this.tdestination3s[8]= new this.tdestination3ary('拉斯维加斯$:$258', ''); this.tdestination3s[9]= new this.tdestination3ary('迪斯尼乐园$:$259', ''); this.tdestination3s[10]= new this.tdestination3ary('大峡谷公园$:$260', ''); with(this.tdestination2obj()) { tselIndex = 0; innerHTML = null; tlength = this.tdestination3s.length; for (ti = 0; ti < tlength; ti ++) { tdestination2Ary = this.tdestination3s[ti].tdestination2.split('$:$'); if (tdestination2Ary[1] == strdestination2) tselIndex = ti; options[ti] = new Option(tdestination2Ary[0], tdestination2Ary[1]); } options.selectedIndex = tselIndex; } with(this.tdestination3obj()) { innerHTML = null; tdestination3list = (this.tdestination3s[tselIndex].tdestination3).split('|'); tlength = tdestination3list.length; for (ti = 0; ti < tlength; ti ++) { tdestination3listAry = tdestination3list[ti].split('$:$'); if (tdestination3listAry[1] == strdestination3) tselIndex = ti; options[ti] = new Option(tdestination3listAry[0], tdestination3listAry[1]); } options.selectedIndex = tselIndex; } }, tloaddestination3: function(strdestination2) { for (ti = 0; ti < this.tdestination3s.length; ti ++) { tdestination2Ary = this.tdestination3s[ti].tdestination2.split('$:$'); if (strdestination2 == tdestination2Ary[1]) { with(this.tdestination3obj()) { innerHTML = null; tdestination3list = (this.tdestination3s[ti].tdestination3).split('|'); tlength = tdestination3list.length; for (tk = 0; tk < tlength; tk ++) { tdestination3listAry = tdestination3list[tk].split('$:$'); options[tk] = new Option(tdestination3listAry[0], tdestination3listAry[1]); } } break; } } }, tselect: function() { with(this.tdestination2obj()) {tselecteddestination2 = options[selectedIndex].value;} this.tloaddestination3(tselecteddestination2); } } destinati_onLoad();