/**  ÆË¾÷Ã¢ ÀÌ¹ÌÁö ¿©´Â Module
	url : open target window(È®ÀåÀÚ´Â º¯°æ°¡´É,È¥¿µ»ç¿ë½Ã È®ÀåÀÚ ÆÄ¶ó¹ÌÅÍ »èÁ¦ »ç¿ë°¡´É)
	wd : open window °¡·Î°ª
	he : open window ¼¼·Î°ª
	flag : scroll ¿©ºÎ(0:½ºÅ©·Ñ ¾ø½¿ / 1:½ºÅ©·Ñ ÀÖ½¿)
	±×¿Ü left. top ÁöÁ¤°ªÀ¸·Î ÁÂÇ¥ ÁöÁ¤ °¡´É

	¿¹) pop('sample.html',500,500,1) 
			=> °¡·Î,¼¼·Î 500pxÀÎ ½ºÅ©·Ñ ÀÖ´Â ÆË¾÷Ã¢ È£Ãâ
**/

/***********************************************************************************/
document.onselectstart = function() {return false}
document.oncontextmenu = function() {return false}


function pop(pop,width,height,flag)
{
	var url = pop;
	var wd = width;
	var he = height;

	if (flag == 0 )
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
	}
	else
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
	}
}

function pop2(pop,width,height,flag)
{
	var url = pop;
	var wd = width;
	var he = height;

	if (flag == 0 )
	{
		window.open(url,"","toolbar=yes,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
	}
	else
	{
		window.open(url,"","toolbar=yes,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
	}
}

function fnPopClose(pop,width,height,left,top)
{
	var url = pop;  
	var wd = width;
	var he = height;
  var l  = left;
  var t  = top;
  
	var eventCookie=getCookie("close"); 
	if (eventCookie != "no") {
		window.open(url,'close',"toolbar=0,menubar=0,scrollbars=no,resizable=no,left=" + l +",top=" + t + ",width=" + wd +",height=" + he + ";")
	}
	//ÆË¾÷Ã¢ÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀÎ¿¡ ÀÖ¾î¾ß ÇÑ´Ù. 
	
}

function fnPopCommon(pop,width,height,left,top)
{
	var url = pop;  
	var wd = width;
	var he = height;
  var l  = left;
  var t  = top;
  
	var eventCookie=getCookie("memo"); 
	if (eventCookie != "no") {
		window.open(url,'common',"toolbar=0,menubar=0,scrollbars=no,resizable=no,left=" + l +",top=" + t + ",width=" + wd +",height=" + he + ";")
	}
	//ÆË¾÷Ã¢ÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀÎ¿¡ ÀÖ¾î¾ß ÇÑ´Ù. 
}

function fnPopReserve(pop,width,height,left,top)
{
	var url = pop;  
	var wd = width;
	var he = height;
  var l  = left;
  var t  = top;
  
	var eventCookie=getCookie("reserve"); 
	if (eventCookie != "no") {
		window.open(url,'reserve',"toolbar=0,menubar=0,scrollbars=no,resizable=no,left=" + l +",top=" + t + ",width=" + wd +",height=" + he + ";")
	}
	//ÆË¾÷Ã¢ÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀÎ¿¡ ÀÖ¾î¾ß ÇÑ´Ù. 
}

function pop_evt1(pop,width,height,left,top)
{
	var url = pop;  
	var wd = width;
	var he = height;
  var l  = left;
  var t  = top;
  
	var eventCookie=getCookie("memo"); 
	if (eventCookie != "no") {
		window.open(url,'',"toolbar=0,menubar=0,scrollbars=no,resizable=no,left=" + l +",top=" + t + ",width=" + wd +",height=" + he + ";")
	}
	//ÆË¾÷Ã¢ÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀÎ¿¡ ÀÖ¾î¾ß ÇÑ´Ù. 
	
}

function pop_evt2(pop,width,height,left,top)
{
	var url = pop;  
	var wd = width;
	var he = height;
  var l  = left;
  var t  = top;
  
	var eventCookie=getCookie("event"); 
	if (eventCookie != "no") {
		window.open(url,'',"toolbar=0,menubar=0,scrollbars=no,resizable=no,left=" + l +",top=" + t + ",width=" + wd +",height=" + he + ";")
	}
	//ÆË¾÷Ã¢ÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀÎ¿¡ ÀÖ¾î¾ß ÇÑ´Ù. 
}

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 "" 
} 

/***********************************************************************************/