document.domain = "joinsmsn.com"; /************************************************************************************************************************************************************************************************ GN 부분 *************************************************************************************************************************************************************************************************/ function getCookie4gn(varname) { varname += "="; var startpos = document.cookie.indexOf(varname); if (startpos >= 0) { startpos += varname.length; var endpos = document.cookie.indexOf(";", startpos); if (endpos == -1) endpos = document.cookie.length; return unescape(document.cookie.substring(startpos, endpos)); } else { return ""; } } function getCookie4gn2(uName,uName2) //쿠키열 중에 uName2의 값을 구한다 { try { var s1 = getCookie4gn(uName); var flag = s1.indexOf(uName2+'='); if (flag != -1) { flag += uName2.length + 1; end = s1.indexOf('&', flag) ; if (end == -1) end = s1.length; return unescape(s1.substring(flag, end)); } else { return ""; } } catch (e) { return ""; } } function setCookie4gn(name, value, domain, expiredays) { // 팟찌쪽에서 알 수 없는 Date()관련 오류가 나와서, 오류인 경우 고정시켰다. try { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; domain="+ domain +"; expires=" + todayDate.toGMTString() + ";"; } catch(e) { document.cookie = name + "=" + escape( value ) + "; path=/; domain="+ domain +"; expires=Thr 31 Dec 2099 23:59:59 UTC;"; } } function setCookie4gn2(name, name2, value, domain, expiredays) { try { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + _gn_cookie_life ); var s1 = getCookie4gn(name); var s2 = getCookie4gn2(name, name2); if(s1 == "") { setCookie4gn(name, name2 +"="+ value, _gn_cookie_domain, _gn_cookie_life); } else { s1 = unescape(s1); if(s2 == "") { setCookie4gn(name, s1 +"&"+ name2 +"="+ value, _gn_cookie_domain, _gn_cookie_life); } else { s1 = s1.replace(name2 +"="+ s2, name2 +"="+ value); setCookie4gn(name, s1, _gn_cookie_domain, _gn_cookie_life); } } } catch(e) { setCookie4gn(name, name2 +"="+ value, _gn_cookie_domain, _gn_cookie_life); } } function searchCheck2(x){ var form = x; var val1 = form.q.value; if (val1=="") { alert("검색어를 입력해 주세요"); form.q.focus(); return false; } return true; } //트래픽체크용 ctag 이미지 삽입 function fnPutCtag(sid){ try{ if(sid.replace(" ", "").length <= 0) return ""; return "<\/script>"; }catch(e){ return ""; } } function toplogomenu(intEq) { var c_href = document.location.href.toString(); document.write(" \n"); document.write(" \n"); // intEq // 스포츠 1,2,3,4,5 // 연예 6 // 라이프 7 // 만화 8 // 게임 9,10 // 기타 11 var sActionTag=""; var iDASlot =129 ; var sWingbanner=""; if (intEq==1||intEq==2||intEq==3||intEq==4||intEq==5){ iDASlot=129; sActionTag="http://view.atdmt.com/iaction/KR_JoinsMSN_Sports_if"; } if (intEq==6) { iDASlot=134; sActionTag="http://view.atdmt.com/iaction/KR_JoinsMSN_Entertainment_if"; } if (intEq==7) { iDASlot=138; sActionTag="http://view.atdmt.com/iaction/KR_JoinsMSN_Life_if"; } if (intEq==8) { iDASlot=141; sActionTag="http://view.atdmt.com/iaction/KR_JoinsMSN_Comic_if"; } if (intEq==9||intEq==10) iDASlot=142; if (intEq==11) iDASlot=145; if(c_href == "http://isplus.joinsmsn.com/" || c_href == "http://isplus.joinsmsn.com/index.html" || c_href.substr(0, 33) == "http://isplus.joinsmsn.com/?cloc=" || c_href.substr(0, 43) == "http://isplus.joinsmsn.com/index.html?cloc=" || c_href.substr(0, 44) == "http://isplus.joinsmsn.com/index_201107.html") { document.write("
\n"); document.write(" \n"); document.write("
\n"); }else if (c_href == "http://isplus.joinsmsn.com/indext.html") //test { document.write("
\n"); document.write(" \n"); document.write("
\n"); } else { document.write("
\n"); document.write(""); document.write("
\n"); //액션태그 if (sActionTag!="") { document.write(''); } //기사 페이지만 S if((c_href.indexOf("http://isplus.joinsmsn.com/article/")!=-1)||(c_href.indexOf("http://isplus.live.joinsmsn.com/news/article/")!=-1)||(c_href.indexOf("http://isplus.joinsmsn.com/cartoon/")!=-1)) { /* document.write(" \n"); document.write("
\n"); document.write(" \n"); document.write("
\n"); document.write("