var usepopup = 1; // ÆË¾÷ »ç¿ëÇÒ·Á¹È 1, ¾Æ´Ï¹È 0 var ignoreCookie = 0; // ÄíŰ¿¡ »ó°ü¾øÀÌ Ç×»ó º¸¿©ÁÙ¶© ¤Ì¤Ñ. function open_event(seq, namez, optz){ qObj = window.open('/_event/popup.asp?seq='+seq, namez, optz); if(qObj) qObj.focus(); else alert('ÆË¾÷ÀÌ Â÷´ÜµÇ¾î ÀÖ¾î ÆË¾÷À» ¶ç¿ìÁö ¸øÇß½À´Ï´Ù.'); } function getCookieForEvent( name ) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } return ""; } var aCName = new Array(); var aSeq = new Array(); var aTop = new Array(); var aLeft = new Array(); var aWidth = new Array(); var aHeight = new Array(); var aScroll = new Array(); var aPosition = new Array(); var eventPopCnt = 0; cnt = aCName.length; if(usepopup){ if(ignoreCookie){ for(i = 0; i < cnt ; i++){ open_event(aSeq[i], aCName[i], aOptions[i]); } } else { for(i = 0; i < cnt ; i++){ if(getCookieForEvent( aCName[i] ) != "deny") { opt_width = (aWidth[i] == "") ? 100 : aWidth[i] ; opt_height = (aHeight[i] == "") ? 100 : aHeight[i]; opt_height = Number(opt_height) + 24; // Ŭ·ÎÁî ¹öư ³ôÀÌ opt_scroll = aScroll[i] opt_position = aPosition[i] switch(opt_position){ case "manual": opt_left = (aLeft[i] == "") ? 0 : aLeft[i]; opt_top = (aTop[i] == "") ? 0 : aTop[i]; break; case "center": opt_left = (screen.availWidth - opt_width) / 2 opt_top = (screen.availHeight - opt_height) / 2 break; case "topleft": opt_left = 0 opt_top = 0 break; case "topcenter": opt_left = (aLeft[i] == "") ? 100 : aLeft[i]; opt_top = 0 break; case "topright": opt_left = (screen.availWidth - opt_width) / 2 opt_top = 0 break; default : opt_left = (aLeft[i] == "") ? 0 : aLeft[i]; opt_top = (aTop[i] == "") ? 0 : aTop[i]; break; } opt = "width="+opt_width+",height="+opt_height+",top="+opt_top+",left="+opt_left+",scrollbars="+opt_scroll open_event(aSeq[i], aCName[i], opt); eventPopCnt++; } } } }