function pop_evt(pop, wd, he, tp, lf, name, value)
{
	var url = pop;  
	var wd = wd;
	var he = he;

	var eventCookie=getCookie(name); 
    if (eventCookie != value){
		window.open(url,'popup_'+value,"toolbar=0,menubar=0,scrollbars=no,resizable=no,top="+ tp +",left="+ lf +",width=" + wd +",height=" + he + ";")
	}
}

function pop_evt2(name, value)
{
	var eventCookie=getCookie(name); 
    if (eventCookie != value){
		eval("document.all.popup_"+value).style.display = "";
	}
}

function winclose(value) 
{
	setCookie("event_"+value, value , 1);
	eval("document.all.popup_"+value).style.display = "none";
}

function setCookie( name, value, expiredays ) // 창 다시 열지 않기 위한 쿠키설정 함수
{ 
     var todayDate = new Date();         
     todayDate.setDate( todayDate.getDate() + expiredays ); 
     document.cookie = name + "=" + escape( value ) + "; path=/;expires=" + todayDate.toGMTString() + ";" 
} 

function getCookie(name) 
{ 
         var Found = false 
         var start, end 
         var i = 0 

         // cookie 문자열 전체를 검색 
         while(i <= document.cookie.length) 
         { 
         	start = i 
                end = start + name.length 
                // name과 동일한 문자가 있다면 
                if (document.cookie.substring(start, end) == name) 
                { 
                	Found = true 
                        break 
                } 
                i++ 
         } 

         // name 문자열을 cookie에서 찾았다면 
	 if(Found == true) 
	 { 
                start = end + 1 
                end = document.cookie.indexOf(";", start) 
                // 마지막 부분이라는 것을 의미(마지막에는 ";"가 없다) 
                if (end < start) end = document.cookie.length 
                    	
                // name에 해당하는 value값을 추출하여 리턴한다. 
                return document.cookie.substring(start, end) 
          } 
          
          // 찾지 못했다면 
          return "" 
} 