var dragapproved=false var minrestore=0 var initialwidth,initialheight var ie5=document.all&&document.getElementById var ns6=document.getElementById&&!document.all function iecompattest(){ return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function initializedrag(e,layerName){ offsetx=ie5? event.clientX : e.clientX offsety=ie5? event.clientY : e.clientY //document.getElementById("dwindowcontent").style.display="none" //extra tempx=parseInt(document.getElementById(layerName).style.left) tempy=parseInt(document.getElementById(layerName).style.top) dragapproved=true document.getElementById(layerName).onmousemove=eval("fn_"+layerName) } function loadwindow(layerName,url,width,height,top,left){ if (!ie5&&!ns6) window.open(url,"","width=width,height=height,scrollbars=1") else{ document.getElementById(layerName).style.display='' document.getElementById(layerName).style.width=initialwidth=width+"px" document.getElementById(layerName).style.height=initialheight=height+"px" document.getElementById(layerName).style.left=left+"px" document.getElementById(layerName).style.top=ns6? window.pageYOffset*1+top+"px" : iecompattest().scrollTop*1+top+"px" //document.getElementById("cframe").src=url } } function maximize(layerName){ if (minrestore==0){ minrestore=1 //maximize window document.getElementById(layerName).style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px" document.getElementById(layerName).style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px" } else{ minrestore=0 //restore window document.getElementById(layerName).style.width=initialwidth document.getElementById(layerName).style.height=initialheight } document.getElementById(layerName).style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px" document.getElementById(layerName).style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px" } function closeit(layerName){ document.getElementById(layerName).style.display="none" } function closeToday(layerName){ closeit(layerName); setCookieP(layerName, "no" , 1); // 1ÀÏ °£ ÄíŰÀû¿ë } function setCookieP( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } function stopdrag(layerName){ dragapproved=false; document.getElementById(layerName).onmousemove=null; //document.getElementById("dwindowcontent").style.display="" //extra }