var xmlhttp; var gamestr; var gameid; gamestr=new Array(); gameid=new Array(); gamestr[0]='Select Game'; gameid[0]=0; gamestr[1]='World of warcraft US'; gameid[1]=1; gamestr[2]='World of Warcraft EU'; gameid[2]=2; gamestr[3]='2Moons'; gameid[3]=18; gamestr[4]='Age Of Conan - EU'; gameid[4]=6; gamestr[5]='Age Of Conan - US'; gameid[5]=5; gamestr[6]='EVE Online'; gameid[6]=11; gamestr[7]='EVER QUEST'; gameid[7]=21; gamestr[8]='Ever Quest2'; gameid[8]=10; gamestr[9]='Final Fantasy XI'; gameid[9]=9; gamestr[10]='FLY FOR FUN'; gameid[10]=26; gamestr[11]='Gaia Online'; gameid[11]=22; gamestr[12]='Guildwars'; gameid[12]=12; gamestr[13]='Lineage2'; gameid[13]=37; gamestr[14]='Lord Of the Rings Online'; gameid[14]=7; gamestr[15]='Maple Story'; gameid[15]=13; gamestr[16]='Perfect World'; gameid[16]=32; gamestr[17]='Silk Road'; gameid[17]=17; gamestr[18]='Star wars Galaxies'; gameid[18]=48; gamestr[19]='War Hammer - EU'; gameid[19]=4; gamestr[20]='War Hammer - US'; gameid[20]=3; // build game list select var oldsid = new Array(); var oldstr = new Array(); var oldlen; function build_gl() { document.fastorder.s_gl.options.length=0; for(var i=0;i < gamestr.length;i++) { document.fastorder.s_gl.options[document.fastorder.s_gl.options.length]=new Option(gamestr[i],gameid[i]); } document.fastorder.s_gl.disabled=false; } build_gl(); function gl_chg(){ var url; document.fastorder.s_sl.options.length=0; document.fastorder.s_pl.options.length=0; document.fastorder.s_sl.options[document.fastorder.s_sl.options.length]=new Option('Select Server',0); document.fastorder.s_pl.options[document.fastorder.s_pl.options.length]=new Option('Select Product',0); document.fastorder.s_sl.disabled=true; document.fastorder.s_i.disabled=true; document.fastorder.s_pl.disabled=true; document.fastorder.s_price.value=''; if(document.fastorder.s_gl.options[document.fastorder.s_gl.selectedIndex].value!=0){ document.fastorder.s_sl.options.length=0; document.fastorder.s_sl.options[document.fastorder.s_sl.options.length]=new Option("...Loading...",0); url='/fast-order/read-data.asp?action=serverlist\&game_id='+document.fastorder.s_gl.options[document.fastorder.s_gl.selectedIndex].value; xmlhttp=getXMLRequester(); xmlhttp.onreadystatechange = do_gl_chg; xmlhttp.open('GET', url, true); xmlhttp.send(null); js_select('s_i',0); } } function do_gl_chg(){ var sstr; var sid = new Array(); var str = new Array(); if (xmlhttp.readyState == 4) { if (xmlhttp.status == 200){ str=xmlhttp.responseText.split('||'); document.fastorder.s_sl.options.length=0; oldlen=str.length; for(var i=0;i < str.length-1;i++) { sstr=str[i]; sid=sstr.split('|'); document.fastorder.s_sl.options[document.fastorder.s_sl.options.length]=new Option(sid[0],sid[1]); oldstr[i]=sid[0]; oldsid[i]=sid[1]; } document.fastorder.count_str.value=str[str.length-1]; document.fastorder.s_sl.disabled=false; document.fastorder.s_i.disabled=false; } else alert('read data error:'+xmlhttp.status); } } function i_chg(){ if(document.fastorder.s_gl.options[document.fastorder.s_gl.selectedIndex].value!=0){ var sstr; var sid = new Array(); var str = new Array(); var newstring; newstring='0|Select Server||'; if((document.fastorder.s_i.options[document.fastorder.s_i.selectedIndex].value.charCodeAt(0)-48)>0){ document.fastorder.s_sl.options.length=0; for(var i=0;i