/********************************************************************************************************
	ÆÐÄ¡
********************************************************************************************************/

function ieActiveX(id)
{
	document.write(id.innerHTML.replace("<!--","<").replace("-->",">")); id.id="";
}
<!--·¹ÀÌ¾îÆË¾÷¼Ò½º

var mvf = false;
var ofx = 0;
var ofy = 0;

function fncInit()
{
    cookiedata = document.cookie;

    if ( cookiedata.indexOf('maindiv=done') < 0 )
        document.all['divpop'].style.visibility = 'visible';
    else
        document.all['divpop'].style.visibility = 'hidden';

    document.onmousemove = fncMove;
}

function setcookie( name, value, expirehours )
{
    var todayDate = new Date();
    todayDate.setHours( todayDate.getHours() + expirehours );
    document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';'
}

function closeWin()
{
    if ( document.notice_form.chkbox.checked )
    {
        setcookie( 'maindiv', 'done', 12 );
    }

    document.all['divpop'].style.display = 'none';
}

function fncMVSet( bool )
{
    ofx = event.offsetX;
    ofy = event.offsetY;
    mvf = bool;

    var obj = document.getElementById('divpop');

    if( mvf )
        obj.style.filter = 'Alpha(Opacity=50)';
    else
        obj.style.filter = 'Alpha(Opacity=100)';
}

function fncMove()
{
    if( mvf )
    {
        var obj = document.getElementById('divpop');

        obj.style.top = event.clientY-ofy;;
        obj.style.left= event.clientX-ofx;
    }
}

//-->



/********************************************************************************************************
	ÀÌ¹ÌÁö »çÀÌÁî¿¡ ¸Â°Ô »õ Ã¢ ¶ç¿ì±â 
********************************************************************************************************/
function view(what) { 
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10'); 
imgwin.focus(); 
imgwin.document.open(); 
imgwin.document.write("<html>\n"); 
imgwin.document.write("<head>\n"); 
imgwin.document.write("<title>**</title>\n"); 

imgwin.document.write("<sc"+"ript>\n"); 
imgwin.document.write("function resize() {\n"); 
imgwin.document.write("pic = document.il;\n"); 
//imgwin.document.write("alert(eval(pic).height);\n"); 
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 40; myWidth = eval(pic).width + 12;\n"); 
imgwin.document.write("  } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
imgwin.document.write("  clearTimeout();\n"); 
imgwin.document.write("  var height = screen.height;\n"); 
imgwin.document.write("  var width = screen.width;\n"); 
imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n"); 
imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n"); 
imgwin.document.write("  self.moveTo(leftpos, toppos);\n"); 
imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
imgwin.document.write("</sc"+"ript>\n"); 
imgwin.document.write("</head>\n"); 
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
imgwin.document.write("<a href=# onclick=window.close() onfocus=this.blur()><img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'></a>");
imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'>\n"); 
imgwin.document.write("</body>\n"); 
imgwin.document.close(); 
}
//-->


/********************************************************************************************************
	»õÃ¢ Á¤°¡¿îµ¥ ¶ç¿ì±â
********************************************************************************************************/
<!-- 
function wopen(url, t, w, h, scroll) {
var sw;
var sh;

sw = (screen.Width - w) / 2;
sh = (screen.Height - h) / 2;

window.open(url, t, 'Width='+w+'px, Height='+h+'px, Left='+sw+', Top='+sh +', scrollbars='+scroll+',resizable');
}


