function setCookie( name, value, expiredays ){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" } function closeWin(fname, value){ if ( document.forms[fname].popup_end.checked ) { setCookie(value, 'NO', 1 );//Äí±â ÀúÀå ±â°£Àº 1ÀÏ·Î ÇÑ´Ù. } hideMe(value); } function closeWinm(fname, name, value){ if ( document.forms[fname].popup_end.checked ) { setCookie(value, 'NO', 1 );//Äí±â ÀúÀå ±â°£Àº 1ÀÏ·Î ÇÑ´Ù. } hideMe(name); } function closeWinyear(fname, value){ if ( document.forms[fname].popup_end.checked ) { setCookie(value, 'NO', 365 );//Äí±â ÀúÀå ±â°£Àº 1ÀÏ·Î ÇÑ´Ù. } hideMe(value); } function closeWinyearm(fname, name, value){ if ( document.forms[fname].popup_end.checked ) { setCookie(value, 'NO', 365 );//Äí±â ÀúÀå ±â°£Àº 1ÀÏ·Î ÇÑ´Ù. } hideMe(name); } function closeGo(url){ location.href=url; } //ÆË¾÷ function hideMe(value) { document.getElementById(value).style.display = "none"; } //ÆË¾÷ //¿òÁ÷ÀÌ´Â ·¹ÀÌ¾î ½ÃÀÛ var x = 0; var y = 0; drag = 0; move = 0; window.document.onmousemove = mouseMove; window.document.onmousedown = mouseDown; window.document.onmouseup = mouseUp; window.document.ondragstart = mouseStop; function mouseUp() { move = 0; } function mouseDown() { if (drag) { clickleft = window.event.x - parseInt(dragObj.style.left); clicktop = window.event.y - parseInt(dragObj.style.top); dragObj.style.zIndex += 1; move = 1; } } function mouseMove() { if (move) { dragObj.style.left = window.event.x - clickleft; dragObj.style.top = window.event.y - clicktop; } } function mouseStop() { window.event.returnValue = false; }