var pwidth; var pheight; var leftp; var topp; function alert2() { alert(' ระบบปิดปรับปรุงชั่วคราว '); } function alert3() { alert('xxxxxxxxxxxxxxxxxxxxxxxx'); } function register() { window.open ("http://register.sf.in.th/member/condition.aspx?channel=TDE", "_top", ""); } function caferegister() { window.open ("http://register.sf.in.th/cafe/condition.aspx", "_top", ""); } function startgame() { pwidth = 300; pheight = 200; leftp=(screen.width)?(screen.width-pwidth)/2:100; topp=(screen.height)?(screen.height-pheight)/2:100; window.open ("https://secure.sf.in.th/member/logon.aspx?d=SDF12DSF2SD0FDS21F02","_blank", "width=" + pwidth + ",height=" + pheight + ",scrollbars=0,top=" + topp + ",left=" + leftp); } function editprofile() { pwidth = 500; pheight = 100; leftp=(screen.width)?(screen.width-pwidth)/2:100; topp=(screen.height)?(screen.height-pheight)/2:100; window.open ("https://secure.sf.in.th/member_profile/member_logon.aspx", "", "width=" + pwidth + ",height=" + pheight + ",scrollbars=1,top=" + topp + ",left=" + leftp); // window.open ("https://secure.sf.in.th/member_profile/member_logon.aspx"); } function gotopage(si,alertx) { if(alertx == 1) { switch(si) { case 'register': register(); //alert2(); break; case 'caferegister': caferegister(); //alert2(); break; case 'startgame': startgame(); //alert2(); break; case 'editprofile': editprofile(); //alert2(); break; } } else { alert2(); } // alert(si); } var calendaron = 0; function calendaronoff() { if(calendaron == 1) { document.write(' '); document.write(' '); document.write(' '); document.write(' '); } } calendaronoff(); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); var quick = document.getElementById("menuquick"); var info = document.getElementById("menugameinfo"); quick.style.display = "none"; info.style.display = "none"; quick.style.display = "inline"; info.style.display = "inline"; var quick = document.getElementById("menuquick"); var download2 = document.getElementById("menudownload"); quick.style.display = "none"; download2.style.display = "none"; quick.style.display = "inline"; download2.style.display = "none";