function getCookie(Name) {
	  var search = Name + "="
	  if (document.cookie.length > 0) { // ÄíÅ°°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é
		    offset = document.cookie.indexOf(search)
		    
		    if (offset != -1) { // ÄíÅ°°¡ Á¸ÀçÇÏ¸é
			    offset += search.length
			    end = document.cookie.indexOf(";", offset)
		
			      // ÄíÅ° °ªÀÇ ¸¶Áö¸· À§Ä¡ ÀÎµ¦½º ¹øÈ£ ¼³Á¤
			    if (end == -1)
			    	end = document.cookie.length
			    return unescape(document.cookie.substring(offset, end))
		    }
	  }
}



function Popup_Win(file_name,width_str,height_str,left_size,top_size,cookie_name){
  if (getCookie(cookie_name) != "deny") {
	var Popup_Win;
	Popup_Win = window.open(file_name, "Popup_Win", "toolbar=no, location=no, directories=no, scrollbars=no, menubar=no, resizable=1, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	Popup_Win.focus();
  }
}




function Popup_Win1(file_name,width_str,height_str,left_size,top_size){
  if (getCookie("notice1") != "deny") {
	var Popup_Win1;
	Popup_Win1 = window.open(file_name, "Popup_Win1", "toolbar=no, location=no, directories=no, scrollbars=no, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	Popup_Win1.focus();
  }
}


//ID Áßº¹°Ë»öÃ¢
function Id_Win(file_name,width_str,height_str,left_size,top_size){
	var Id_Win;
	Id_Win = window.open(file_name, "Id_Win", "toolbar=no, location=no, directories=no, scrollbars=no, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	Id_Win.focus();
}

//ÁÖ¼Ò °Ë»öÃ¢
function Addr_Win(file_name,width_str,height_str,left_size,top_size){
	var Addr_Win;
	Addr_Win = window.open(file_name, "Addr_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	Addr_Win.focus();
}

//ÄÚµå°ü¸® ¼öÁ¤Ã¢
function Code_Win(file_name,width_str,height_str,left_size,top_size){
	var Code_Win;
	Code_Win = window.open(file_name, "Code_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	Code_Win.focus();
}

//ÆË¾÷Ã¢ À©µµ¿ì Áß¾ÓÀ¸·Î...
function winCenter() {
	if (document.layers) {
		var sinist = screen.width / 2 - outerWidth / 2;
		var toppo = screen.height / 2 - outerHeight / 2;
	} else {
		var sinist = screen.width / 2 - document.body.offsetWidth / 2;
		var toppo = -75 + screen.height / 2 - document.body.offsetHeight / 2;
	}
	self.moveTo(sinist, toppo);
}

//ÅõÇ¥°ü¸® ¼öÁ¤Ã¢
function Updt_func(file_name,width_str,height_str,left_size,top_size){
	var Updt_func;
	Updt_func = window.open(file_name, "Poll_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	Updt_func.focus();
}


//ÅõÇ¥°ü¸® ¼öÁ¤Ã¢
function Sort_func(file_name,width_str,height_str,left_size,top_size){
	var Poll_Win;
	Poll_Win = window.open(file_name, "Poll_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	Poll_Win.focus();
}


//Áö³­ ÅõÇ¥°á°ú º¸±âÃ¢
function PrevP_func(file_name,width_str,height_str,left_size,top_size){
	var PrevP_Win;
	PrevP_Win = window.open(file_name, "PrevP_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PrevP_Win.focus();
}


//PMº¸°í¼­ ±×·ìÁ¤º¸ ³ª¿­º¯°æ
function PmSort_func(file_name,width_str,height_str,left_size,top_size){
	var PmSort_Win;
	PmSort_Win = window.open(file_name, "PmSort_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PmSort_Win.focus();
}



//PMº¸°í¼­ ÀúÀÚÁ¤º¸ µî·Ï Ã¢
function PmAuth_func(file_name,width_str,height_str,left_size,top_size){
	var PmAuth_Win;
	PmAuth_Win = window.open(file_name, "PmAuth_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PmAuth_Win.focus();
}



//PMº¸°í¼­ »ç¿ëÀÚ Á¶È¸ ÆË¾÷ Ã¢
function PmUser_func(file_name,width_str,height_str,left_size,top_size){
	var PmUser_Win;
	PmUser_Win = window.open(file_name, "PmUser_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, resizable=1, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PmUser_Win.focus();
}


//PMº¸°í¼­ RAW-DATA ÆË¾÷Ã¢
function PmRaw_func(file_name,width_str,height_str,left_size,top_size){
	var PmRaw_Win;
	PmRaw_Win = window.open(file_name, "PmRaw_Win", "toolbar=no, status=1, location=no, directories=no, scrollbars=yes, menubar=no, resizable=1, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PmRaw_Win.focus();
}


//PMº¸°í¼­ ±â»çµî·ÏÂ÷ ¶ç¿ì±â
function PmAritcle_func(file_name,width_str,height_str,left_size,top_size){
	var PmAritcle_Win;
	PmAritcle_Win = window.open(file_name, "PmAritcle_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PmAritcle_Win.focus();
}


//ºÐÀï¿ë¾î µî·ÏÃ¢ ¶ç¿ì±â
function dt_func(file_name,width_str,height_str,left_size,top_size){
	var dt_Win;
	dt_Win = window.open(file_name, "dt_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	dt_Win.focus();
}


//PMº¸°í¼­ ±â»ç³ª¿­¼ø¼­ º¯°æ Ã¢ ¶ç¿ì±â
function PmAritcleS_func(file_name,width_str,height_str,left_size,top_size){
	var PmAritcleS_Win;
	PmAritcleS_Win = window.open(file_name, "PmAritcleS_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PmAritcleS_Win.focus();
}


//PMº¸°í¼­ ¿äÁöÁ¤º¸ ÆË¾÷ Ã¢
function YojiWinPdf(yoji_no){
	var YojiWinPdf_Win;
	
	var file_name	=	'/ptsearch/pdf_view.asp?yoji_no='+yoji_no;
	var width_str	=	700;
	var height_str	=	600;
	var left_size	=	0;
	var top_size	=	0;
	
	YojiWinPdf_Win = window.open(file_name, "YojiWinPdf_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, resizable=1, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	YojiWinPdf_Win.focus();
}


//¸ÞÀÎÆäÀÌÁö¿¡¼­ ¼³¹®Á¶»ç Ã¢ ¶ç¿ì±â
function PollMain_func(file_name,width_str,height_str,left_size,top_size){
	var PollMain_Win
	PollMain_Win = window.open(file_name, "PollMain_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	PollMain_Win.focus();
}


//Kipris ¿ø¹®Á¶È¸Ã¢
function fKipris(raw_no){
	var wKipris_Win;
		
	var file_name	=	'/pm/report/search_kipris.asp?raw_no='+raw_no;
	var width_str	=	850;
	var height_str	=	700;
	var left_size	=	0;
	var top_size	=	0;
		
	wKipris_Win = window.open(file_name, "wKipris_Win", "toolbar=no, location=no, directories=no, scrollbars=yes, menubar=no, resizable=1, width="+ width_str +", height="+ height_str +", left="+left_size+", top="+top_size);
	wKipris_Win.focus();			
}


//ÀüÃ¼Ã¢À¸·Î ÆË¾÷Ã¢À» »ý¼º ÇÔ¼ö
function winopen(targeturl,sScroll){
	if(sScroll == 'Y'){ 
		newwin=window.open("","","scrollbars") // ½ºÅ©·Ñ¹Ù¸¸ »ý±â°Ô ÇÕ´Ï´Ù 
	}else{
		newwin=window.open("","")
	}
	
	if (document.all){ 
		newwin.moveTo(0,0) 
		newwin.resizeTo(screen.width,screen.height) 
	} 
	
	newwin.location=targeturl 
} 
