//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// °øÁö»çÇ× / ¸Þ¸ð / ÂÊÁö / ÀÏÁ¤ / ¾÷¹«
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// mode : ÆË¾÷Ã¢¿¡¼­ ÇÒ ÀÛ¾÷
// kind : °Ô½Ã±Û Á¾·ù
// part : °Ô½Ã±Û ÇÏÀ§ Á¾·ù
// num : ÀÐ±â , ¼öÁ¤¿¡ ¾µ ÀÏ·Ã¹øÈ£

var d = new Date();
var s = d.getHours() + d.getMinutes() + d.getSeconds();

function Popup_Work(popup , mode , num , kind , part)
{		
	
	var fheight = 700;
	var fwidth = 850;
	
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2- fwidth / 2; 
	var toppos = height / 2- fheight / 2;
	
	var target_page = "" ;
	var target_name = "" ;
		
	
	switch (popup)
	{
	
	case "notice" :
	  target_page = "/work/notice_popup.asp" ; target_name = "notice_popup"
	  break
	case "memo" :
	  target_page = "/work/memo_popup.asp" ; target_name = "memo_popup"
	  break
	case "msg":
	  target_page = "/work/msg_popup.asp" ; target_name = "msg_popup"
	  break
	case "schedule":
	  target_page = "/work/work_schedule_popup.asp" ; target_name = "schedule_popup"	  
	  break
	case "work":
	  target_page = "/work/work_popup.asp" ; target_name = "work_popup"
	  break
	case "counsel":
	  target_page = "/counsel/counsel_popup.asp" ; target_name = "counsel_popup"
	  break
	case "booking":
	  target_page = "/booking/booking_popup.asp" ; target_name = "booking_popup"
	  break  
	case "ins_notice_faq":
	  target_page = "/ins/ins_notice_popup.asp" ; target_name = "ins_notice_popup"
	  break  
	case "ins_request":
	  target_page = "/ins/ins_request_popup.asp" ; target_name = "ins_request_popup";
	  fheight = 400;
	  toppos = height / 2- fheight / 2;
	  break 
	default:
	  target_page = "/ins/ins_request_popup.asp" ; target_name = "work_popup"
	}

	
	openwin = window.open(target_page + "?kind=" + kind + "&mode=" + mode + "&num=" + num + "&part=" + part , target_name + s, "left=" + leftpos + ", top = " + toppos + ", height=" + fheight + ", width=" + fwidth + ", menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
		
} 




//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ÀÚÀç / ³ë¹«ÀÚ / ¾÷Ã¼ / Á÷¿ø / Àåºñ / Â÷·® °ø¿ë Ã¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// mode : ÆË¾÷Ã¢¿¡¼­ ÇÒ ÀÛ¾÷ : ¾²±â ¼öÁ¤ ÀÐ±â
// num : ¾÷Ã¼ ÀÏ·Ã¹øÈ£
// mode_value : ¿¹ºñ°ª

function Popup_Code(popup , mode , num , mode_value , code , parent_location)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-425; 
	var toppos = height / 2-350;
	
	var target_page = "" ;
	var target_name = "" ;
	
		
	switch (popup)
	{	
	case "booking":	  // ÆË¾÷Ã¢¿¡¼­ÀÇ ¿¹¾à
	  target_page = "/booking/booking_popup.asp" ; l_width = 850; l_height = 500; buf_m = "2";
	  break
	case "counsel":	 
	  target_page = "/counsel/counsel_popup.asp" ; l_width = 850; l_height = 700; buf_m = "2";  
	  break	
	case "notice":	 
	  target_page = "/common/inc/notice.asp" ; l_width = 300; l_height = 110; buf_m = "1";
	  break
	case "question":	 
	  target_page = "/common/inc/question.asp" ; l_width = 300; l_height = 150; buf_m = "1";
	  break
	case "guest":
	  target_page = "/guest/guest_popup.asp" ; l_width = 850 ; l_height = 700 ; buf_m = '2';
	  break		
	case "member":
	  target_page = "/info/member_popup.asp" ; l_width = 850 ; l_height = 700 ; buf_m = '2';
	  break		
	case "company":
	  target_page = "/info/company_popup.asp" ; l_width = 850 ; l_height = 700 ; buf_m = '2';
	  break		
	default:
	  alert("ÆË¾÷Á¤º¸°¡ Á¸ÀçÇÏÁö¾Ê½À´Ï´Ù")
	}
	
	
	
	switch (parent_location)
	{
	case "me":	 	
	  popupLayer(target_page + "?mode=" + mode + "&mode_value="+mode_value+"&num=" + num + "&code=" + code,l_width,l_height, buf_m ,popup);	
	  break	
	default:
	  parent.popupLayer(target_page + "?mode=" + mode + "&mode_value="+mode_value+"&num=" + num + "&code=" + code,l_width,l_height, buf_m ,popup);	
	}	
	
	
			
} 





//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ¾÷Ã¼ / Á÷¿ø °Ë»ö °ø¿ë Ã¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// mode : ÆË¾÷Ã¢¿¡¼­ ÇÒ ÀÛ¾÷ (È¸»çÄÚµå)
// mode_value : È¸»çÄÚµå°ª
// con1 : ¾÷Ã¼¸íÀ» ³ÖÀ» ºÎ¸ðÃ¢ ÄÁÆ®·Ñ
// con2 : ¾÷Ã¼ÄÚµå¸¦ ³ÖÀ» ºÎ¸ðÃ¢ ÄÁÆ®·Ñ
// form : ºÎ¸ðÃ¢ÀÇ Æû ÀÌ¸§

function Popup_Code_Search(popup , mode , mode_value , con1 , con2 , form)
{
	
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-425; 
	var toppos = height / 2-250;
	
	var target_page = "" ;
	var target_name = "" ;
	
	switch (popup)
	{	
	
	case "ABC" :
	  target_page = "/info/ABC_Search_popup.asp" ; target_name = "ABC_Search_popup"
	  break	
	case "model" :
	  target_page = "/mobile/mobile_Search_popup.asp" ; target_name = "mobile_Search_popup"
	  break	
	case "user":
	  target_page = "/user/user_Search_Popup.asp" ; target_name = "user_search_popup"
	  break
	case "customer":
	  target_page = "/Info/Customer_Search_Popup.asp" ; target_name = "customer_search_popup"
	  break
	case "worker":
	  target_page = "/Info/Worker_Search_Popup.asp" ; target_name = "worker_search_popup"
	  break
	case "member":
	  target_page = "/Info/Member_Search_Popup.asp" ; target_name = "member_search_popup"	  
	  break	
	default:
	  alert("ÆË¾÷Á¤º¸°¡ Á¸ÀçÇÏÁö¾Ê½À´Ï´Ù")
	}
	
	openwin = window.open(target_page + "?mode=" + mode + "&mode_value="+mode_value+"&con1=" + con1 + "&con2=" + con2 + "&form=" + form , target_name + s, "left=" + leftpos + ", top = " + toppos + ", height=500, width=850, menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
		
} 


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// °øÁ¾ °ø¿ëÃ¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function Popup_Const_Code(mode , num)
{
		
	var height = screen.height; 
	var width = screen.width; 	
	var leftpos = width / 2-225; 
	var toppos = height / 2-150;
	openwin = window.open("/const/const_code_popup.asp?mode="+mode+"&num="+num , "Popup_Const_Code" + s, "left=" + leftpos + ", top = " + toppos + ", height=300, width=450, menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
			
} 

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// È¸°è°èÁ¤ °ø¿ëÃ¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function Popup_Account_Code(mode , num)
{
		
	var height = screen.height; 
	var width = screen.width; 	
	var leftpos = width / 2-225; 
	var toppos = height / 2-150;
	openwin = window.open("/gooduse/account_code_popup.asp?mode="+mode+"&num="+num , "Popup_Account_Code" + s, "left=" + leftpos + ", top = " + toppos + ", height=300, width=450, menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
			
} 






//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ÀÌ¹ÌÁö »ó¼¼º¸±â °ø¿ëÃ¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function Popup_img_Detail(f1 , f2 , filename , ccode , pcode , mcode)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = 0; 
	var toppos = 0;
	openwin = window.open("/upload/img_Preview.asp?f1="+f1+"&f2="+f2+"&filename="+filename+"&ccode="+ccode+"&pcode="+pcode+"&mcode="+mcode , "Popup_img_Detail" + s, "left=" + leftpos + ", top = " + toppos + ", height=700, width=850, menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
			
} 



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ¿ìÆí¹øÈ£ °ø¿ëÃ¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function Popup_Address(mode , kind)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-325; 
	var toppos = height / 2-200;
	
	popupLayer("/Addr/Address.asp?mode="+mode+"&kind="+kind,500,400, "2" , "address");	

			
} 



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ¾÷·Îµå °ø¿ëÃ¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// mode : ´ÜÀÏÆÄÀÏ , ´ÙÁßÆÄÀÏ
// kind : ÆÄÀÏÁ¾·ù
// num : ÆÄÀÏ¼ø¹ø

function Popup_Upload(mode , kind , num , filter , tartxt , tarfolder , tarimg)
{
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-310; 
	var toppos = height / 2-150;
	popupLayer("/upload/asp/Find_Data.asp?tartxt="+tartxt+"&tarfolder="+tarfolder+"&tarimg="+tarimg+"&mode="+mode+"&filter=" + filter + "&kind=" + kind + "&num=" + num,620,350, "2" , "upload");	
			
} 



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ¾ÆÀÌµð Ã£±â °ø¿ë Ã¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// form : Æû°ª
// con1 : °ª Àü´ÞÇÒ ÄÁÆ®·Ñ
// table : ¾ÆÀÌµð Ã£À» Å×ÀÌºí (Á÷¿ø , ±Ù·ÎÀÚ , ´Ù Æ²·Á¼­ ¸¸µë)

function Popup_ID_Search(form , con1 , who)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-325; 
	var toppos = height / 2-200;
	popupLayer("/Member/Id_Search.asp?form=" + form + "&con1="+con1+"&who=" + who,650,400, 2);	
				
} 






//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// °í°´ ½Å±Ô °¡ÀÔ °ø¿ë Ã¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// part : ½Å±Ô°¡ÀÔ ¸ðµå°ª

function Popup_Guest_Add(part)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-510; 
	var toppos = height / 2-300;
	openwin = window.open("/Guest/List_New.asp?part=" + part , "Popup_Guest_Add" + s, "left=" + leftpos + ", top = " + toppos + ", height=600, width=1020, menubar=no, resizable=no, status=no, scrollbars=no");
	openwin.focus();
		
} 






//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// °í°´ °£´Üº¸±â °ø¿ë Ã¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// part : ½Å±Ô°¡ÀÔ ¸ðµå°ª

function Popup_Guest_Short(num)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-520; 
	var toppos = height / 2-225;
	openwin = window.open("/Guest/List_sub_short.asp?num=" + num , "Popup_Guest_Short" + s, "left=" + leftpos + ", top = " + toppos + ", height=450, width=1040, menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
		
} 





//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// º¸Çè Á¤º¸ º¸±â
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// part : ½Å±Ô°¡ÀÔ ¸ðµå°ª

function Popup_Ins(mode , num)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-425; 
	var toppos = height / 2-300;
	openwin = window.open("/ins/ins_popup.asp?mode=" + mode + "&num=" + num , "Popup_ins" + s, "left=" + leftpos + ", top = " + toppos + ", height=600, width=850, menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
		
} 


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// º¸Çè Á¤º¸ º¸±â - °ü¸®ÀÚ
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// part : ½Å±Ô°¡ÀÔ ¸ðµå°ª

function Popup_Admin_Ins(mode , num , url)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-525; 
	var toppos = height / 2-390;
	
	switch (url)
	{	
	case "ins_site_state": //»çÀÌÆ®
	  target_page = "/ins/ins_site_state_popup.asp" ; target_name = "ins_site_state_popup" ; buf_height = "570" ; buf_width = "950" ; leftpos = "230" ; toppos = "200"
	  break	
	default: //¾÷Ã¼
	  target_page = "/ins/ins_admin_popup.asp" ; target_name = "ins_admin_popup" ; buf_height = "780" ; buf_width = "1050"
	  
	}
	
	openwin = window.open(target_page + "?mode=" + mode + "&num=" + num , target_name + s, "left=" + leftpos + ", top = " + toppos + ", height="+buf_height+", width="+buf_width+", menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
		
} 






//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ¿Â¶óÀÎ»ó´ã ½ÅÃ»Á¤º¸ º¸±â - °ü¸®ÀÚ
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function Popup_Online_Ins(mode , num , url)
{
		
	var height = screen.height; 
	var width = screen.width; 
	var leftpos = width / 2-425; 
	var toppos = height / 2-390;
	
	switch (url)
	{	
	case "online":
	  target_page = "/ins/ins_online_popup.asp" ; target_name = "online_popup"
	  break
	case "alliance":
	  target_page = "/ins/ins_alliance_popup.asp" ; target_name = "alliance_popup"	  
	  break	
	default:
	  
	}
	openwin = window.open(target_page + "?mode=" + mode + "&num=" + num , target_name + s, "left=" + leftpos + ", top = " + toppos + ", height=530, width=850, menubar=no, resizable=no, status=no, scrollbars=yes");
	openwin.focus();
		
} 





//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ÀÔÃâ±Ý °ø¿ë Ã¢
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// mode : ¸ðµå°ª
// num : ÀÏ·Ã¹øÈ£
// sub : °èÁ¤
// sub1 : »ó¼¼°èÁ¤
// kind : ÀÔÃâ±ÝÁ¾·ù
// member_num : °í°´ÀÏ·Ã¹øÈ£
// member_cnt : °í°´¼ö¼ÓÀÏ·Ã¹øÈ£

function Popup_Account(mode, num, sub_name1, sub_name2, kind, member_num, member_cnt)
{
		
		var height = screen.height; 
		var width = screen.width; 
		var leftpos = width / 2-300; 
		var toppos = height / 2-125;
		openwin = window.open("/Guest/List_Account_Popup.asp?mode="+mode+"&num="+num+"&sub="+sub_name1+"&sub1="+sub_name2+"&kind="+kind+"&member_num="+member_num+"&member_cnt="+member_cnt , "Popup_Account" + s, "left=" + leftpos + ", top = " + toppos + ", height=250, width=600, menubar=no, resizable=no, status=no, scrollbars=no");
		openwin.focus();
			
	
} 












