//document.domain = "zog.co.kr"; //2004-04-22 serverurl="http://www.tioh.net/zog_nackseo"; if(location.href.indexOf(serverurl)<0 && document.all){ location.href=serverurl+'/'+document.location.search+document.location.hash; } //2004-04-22 lastIndex=(location.href.indexOf("no=")>0)?0:3; currentIndex=(location.href.indexOf("ppage")>0)?lastIndex:0; function checkPP(){ if(currentIndex!=0){ document.anchors[currentIndex-1].scrollIntoView(); currentIndex--; } } function toSide(url){ window.open(url,"_search"); } function gonextP(){ var l=document.links; var ll=l.length; while(ll>0){ ll--; if(l[ll].href.indexOf('npage')>0&& location.href!=l[ll].href){ location.href=l[ll].href; return; } } status="³¡ºÎºÐÀÔ´Ï´Ù."; } function goprevP(){ var l=document.links; var ll=l.length; while(ll>0){ ll--; if(l[ll].href.indexOf('ppage')>0&&location.href!=l[ll].href){ location.href=l[ll].href; return; } } status="³¡ºÎºÐÀÔ´Ï´Ù."; } function gonext(){ currentIndex++; if(lastIndex>document.anchors.length)lastIndex=document.anchors.length; if(currentIndex>=lastIndex ){ gonextP();currentIndex=lastIndex-1; } else { document.anchors[currentIndex].scrollIntoView(); } } function goprev(){ currentIndex--; if(currentIndex<0){ goprevP(); currentIndex=0;} else { document.anchors[currentIndex].scrollIntoView(); } } function moveA(d){ if(location.href.indexOf('&simple')>0 )document.getElementById("mains").scrollIntoView(true); } function ShortCuts (e) { if (e == null) { code = event.keyCode; if(event.srcElement.tagName == "INPUT" ) return true; } else { if (e.altKey || e.ctrlKey) { return true; } if(e.target.tagName == "INPUT" ) return; code = e.which; } key = String.fromCharCode(code).toLowerCase(); if(code==13) key="enter"; switch(key) { case "z": { if(self.status.indexOf('og')<0){self.status="(< >)prev/next, (C)heckIn/Out,(V)iewToggle,(N)ew,(L)ogIn/Out,(A)dmin,(Z)og this"; }else { self.status='';} }; return false; case "c": { location.href='http://www.tioh.net/zog_nackseo//glogin.php?url=http://www.tioh.net/zog_nackseo/';}return false; case "n": { location.href='http://www.tioh.net/zog_nackseo//write/index.php';} return false; case "enter": { var no=document.anchors[currentIndex].name; location.href='http://www.tioh.net/zog_nackseo/?no='+no+'#'+no; } return false; case ">": { window.scroll(0,document.body.scrollHeight); return false; } case "<": { window.scroll(0,0); return false; } case ".": { status=""; //if(document.anchors.length>0) gonext(); } return false; case ",": { status=""; //if(document.anchors.length>0) goprev(); } return false; case "a": { open('http://www.tioh.net/zog_nackseo//admin.php','_self');} return false; case "v": { if (location.href.indexOf('http://www.tioh.net/zboard/zboard.php?id=blog_nackseo')<0) { location.href='http://www.tioh.net/zog_nackseo/?frame_url=http://www.tioh.net/zboard/zboard.php?id=blog_nackseo'; } else { location.href='http://www.tioh.net/zog_nackseo/'; } } return false; case "l": { location.href='http://www.tioh.net/zog_nackseo//login.php?url=http://www.tioh.net/zog_nackseo/';} return false; case "z": return false; } return true; } document.onkeypress=ShortCuts; function comment_expand(dir,num,flag){ var ls=location.pathname; if(ls.lastIndexOf('\/') } function toFrame(url){ if( document.getElementById("mainFrame")){ document.getElementById("mainFrame").src=url; return false; } else { location.href='http://www.tioh.net/zog_nackseo/?frame_url='+escape(url); return false; } } function toOpener(url){ if(window.name=="mainFrame"){ open(url,"_top"); return; } if(document.all) { open(url,"_main"); } else { open(url,"_content"); //open(url); } } //var oldFn = new String(window.onload); //window.onload = new Function("resizeFrames();" + oldFn); //var oldFn1 = new String(window.resize); window.onresize=function (){ resizeFrames(); } //resizeFrames();