//window.document.domain = '.xtoc.com' ; //°Ë»ö ÄÁÅÙÃ÷ ÄÁÆ®·Ñ¿ë ¹è¿­ var main_TopLeftBannerData = new Array(); var searchBannerData = new Array(); var main_TopRightBannerData = new Array(); var searchTitleData1 = new Array(); var searchTitleData2 = new Array(); var main_RecomClubData = new Array(); var main_RecomPrizeData = new Array(); var rightBanner = new Array(); var main_BottomLeftBannerData1 = new Array(); var main_BottomLeftBannerData2 = new Array(); var main_CoverBannerData = new Array(); var isNS4 = (navigator.appName=="Netscape")?1:0; // popup (Äí±â»ç¿ë) function SetPopupwin(popupurl,win_width, win_height,checkname) { var chk=HgetCookie(checkname); if ((chk=="") || (chk==null)) { var remote = window.open("","popupwin","scrollbar=no,width="+win_width+",height="+win_height+",left=0,top=0"); remote.location.href = popupurl; remote.focus(); } } // popup (ÆË¾÷â À̸§ÁöÁ¤,TOP=0,LEFT Á¶Àý°¡´É) function SetPopupwin2(popwinname,popupurl,win_width, win_height,checkname,nleft) { var chk=HgetCookie(checkname); if ((chk=="") || (chk==null)) { var remote = window.open("",popwinname,"scrollbar=no,width="+win_width+",height="+win_height+",left="+nleft+",top=0"); remote.location.href = popupurl; remote.focus(); } } // popup (ÆË¾÷â À̸§ÁöÁ¤) function openWin_Center(popwinname,popupurl,win_width, win_height){ var childWin; var leftPos = (screen.width - win_width)/2; var topPos = (screen.height - win_height)/2; features = "left=" + leftPos + ", top=" + topPos; childWin = window.open(popupurl,popwinname ,"scrollbars=no,width="+win_width+",height="+win_height+","+features+",status=no,toolbar=no,menu=no"); childWin.focus(); } function fn_TailPopup(mode) { if(mode=='no_spam') { wid = 500; hei = 300; x = Math.ceil((screen.width-wid)/2); y = Math.ceil((screen.height-hei)/2); window.open('http://www.xtoc.com/html/popup_no_spam.html','no_spam','width=450,height=387,directories=no,status=no,scrollbars=no,resize=no,menubar=no,left='+x+',top='+y+''); } if(mode=='partner') { wid = 500; hei = 300; x = Math.ceil((screen.width-wid)/2); y = Math.ceil((screen.height-hei)/2); window.open('http://www.xtoc.com/html/popup_partner.html','partner','width=512,height=347,directories=no,status=no,scrollbars=no,resize=no,menubar=no,left='+x+',top='+y+''); } } function fnTocMoneyCharge(url) { wid = 500; hei = 790; x = Math.ceil((screen.width-wid)/2); y = Math.ceil((screen.height-hei)/2); window.open(url,'tocmoney','width=500,height=602,directories=no,status=no,scrollbars=no,resize=no,menubar=no,left='+x+',top='+y+''); } // Ç÷¡½Ã »ðÀÔ ½ºÅ©¸³Æ® function swf(src,w,h){ html = ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += ''; html += '<\/embed>'; html += '<\/object>'; document.write(html); } function HgetCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return document.cookie.substring(offset, endstr); } function HgetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return HgetCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return ""; } function Logout() { var ok = window.confirm("·Î±×¾Æ¿ô ÇϽðڽÀ´Ï±î? "); if(ok) return top.location.href="http://www.xtoc.com/login/logout.html"; return; } function loginform() { var logRetUrl=""; var logTarGetURL=(logRetUrl == "") ? ""+window.location.href:logRetUrl; var loginstr="
"; document.writeln(loginstr); } function Headlogin() { top.document.loginform.submit(); return false; } var viewflag = "hidden"; function hideView(){ if( HgetCookie('toc_info') == ""){ //alert('·Î±×ÀÎ ÇϽŠÈÄ¿¡ °Ë»öÀÌ °¡´ÉÇÕ´Ï´Ù.'); document.location.href="/login/srch_login.html"; } //document.search.q.style.backgroundImage = "url(none)"; document.search.q.style.backgroundImage = ""; if (viewflag =="view"){ viewflag = "hidden"; historyView(); } } function favoris(st_name,st_url) { if ( navigator.appName != 'Microsoft Internet Explorer' ) { window.sidebar.addPanel(st_name,"http://"+st_url+"/",""); } else { window.external.AddFavorite("http://"+st_url+"/",st_name); } } //////////////////////////// ¿©±â´Â ½º¿Ò À̹ÌÁö¿ë /////////////////////////////////////////////// function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i'); write(''); write(' '); write(''); write(''); write(' ÀÌ¿ë¾à°ü l °³ÀÎÁ¤º¸º¸È£Á¤Ã¥ l À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ l Á¦ÈÞ¹®ÀÇ l °í°´¼¾ÅÍ l ÀúÀ۱Ǻ¸È£¼¾ÅÍ'); write(''); write(''); write(' '); write(''); write(''); write(' Copyright ¨Ï 2008 LI System co. Ltd. All Right Reserved.'); write(''); write(''); write(''); // write(""); } } function fn_pop(th) { if(th=='no_spam') { wid = 500; hei = 300; x = Math.ceil((screen.width-wid)/2); y = Math.ceil((screen.height-hei)/2); window.open('http://www.xtoc.com/html/popup_no_spam.html','no_spam','width=512,height=217,directories=no,status=no,scrollbars=no,resize=no,menubar=no,left='+x+',top='+y+''); } if(th=='partner') { wid = 500; hei = 300; x = Math.ceil((screen.width-wid)/2); y = Math.ceil((screen.height-hei)/2); window.open('http://www.xtoc.com/html/popup_partner.html','partner','width=512,height=347,directories=no,status=no,scrollbars=no,resize=no,menubar=no,left='+x+',top='+y+''); } } function KeepSessionAlive() { document.hiddenframe.location = "http://www.xtoc.com/login/login_sess.html"; setTimeout("KeepSessionAlive()", 600000); } function goClubByid(clubid) { //top.location.href="http://club.xtoc.com/"+clubid; var toplocationhref="http://club.xtoc.com/"+clubid; window.open(toplocationhref); } ////////////////////////////////////////////////////////////////////////////////////////// var msgNum = 0; function msgNext() { if (msgNum >= onAirData.length) msgNum = 0; document.all.msgBox.innerHTML = ""+onAirData[msgNum][0] +""; msgNum++; } // Object Ç¥ÁØÈ­ function getStyleObject(objectId) { // checkW3C DOM, then MSIE 4, then NN 4. if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId).style; } else if (document.all && document.all(objectId)) { return document.all(objectId).style; } else if (document.layers && document.layers[objectId]) { return document.layers[objectId]; } else { return false; } } function getObject(objectId) { // checkW3C DOM, then MSIE 4, then NN 4. if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId); } else if (document.all && document.all(objectId)) { return document.all(objectId); } else if (document.layers && document.layers[objectId]) { return document.layers[objectId]; } else { return false; } } function changeObjectVisibility(objectId, newVisibility) { // first get a reference to the cross-browser style object // and make sure the object exists var styleObject = getStyleObject(objectId); if(styleObject) { styleObject.visibility = newVisibility; return true; } else { // we couldn't find the object, so we can't change its visibility return false; } } function displayText(objectId, text){ if (document.all) { document.all[objectId].innerHTML = text; } else { var obj = document.getElementById(objectId); obj.innerHTML = text; } } function $() { var ret = []; for(var i=0; i < arguments.length; i++) { if (typeof arguments[i] == 'string') { ret[ret.length] = document.getElementById(arguments[i]); } else { ret[ret.length] = arguments[i]; } } return ret[1]?ret:ret[0]; }