

function winOpen(num) {
   //***** ¿Þ¸µÅ©¹× ÆË¾÷*****
  var path="/web/";
	//alert(num);
   //***** ¸ÞÀÎ *****
   if(num == 'kang') {			               // È¨
     document.location.href = "/index_.html";
  }
   if(num == 'login') {			               // ·Î±×ÀÎ
     document.location.href = "/06_community/community01.html?id=notice&lg=Y";
  }
  if(num == 'logout') {			               // ·Î±×¾Æ¿ô
     document.location.href = "/index.htm";
  }
   if(num == 'member') {			           // È¸¿ø°¡ÀÔ
     document.location.href = "/08_member/member01.html";
  }
   if(num == 'member_modify') {			   // È¸¿øÁ¤º¸¼öÁ¤
     document.location.href = "/index.htm";
  }
   if(num == 'sitemap') {			           // »çÀÌÆ®¸Ê
     document.location.href = "/07_other/sitemap.html";
  }
     if(num == 'personal') {			           // °³ÀÎº¸È£Á¤Ã¥
     document.location.href = "/07_other/personal.html";
  }
     if(num == 'apply') {			           // 9¹Ú10ÀÏ ±³À°½ÅÃ»
     document.location.href = "/07_other/apply_1.html";
  }
      if(num == 'cham') {			           // °³ÀÎº¸È£Á¤Ã¥
     document.location.href = "/11_cham/cham.html";
  }  
     if(num == 'webtoon') {			           // °³ÀÎº¸È£Á¤Ã¥
     document.location.href = "/09_webtoon/webtoon.html";
  }  
     if(num == 'video') {			           // Å¾
     document.location.href = "/07_other/video.html";
  }
       if(num == 'new11') {			           // ±æµ¿½Å»ç¿Á
     document.location.href = "http://allbab.net/07_other/new.html";
  }

     if(num == 'top') {			           // Å¾
     document.location.href = "#top";
  }



  //***** ¸ÞÀÎ *****  9ºò 10ÀÏ ±³À°½ÅÃ» ¹× ±³À°, ÀÔ±Ý È®ÀÎ
  
     if(num == 'record01') {			           // 9¹Ú10ÀÏ ±³À°½ÅÃ»
     document.location.href = "/10_record/record01.html";
  }
     if(num == 'record02') {			           // 9¹Ú10ÀÏ ±³À°½ÅÃ»
     document.location.href = "/10_record/record02.html";
  }
     if(num == 'record03') {			           // 9¹Ú10ÀÏ ±³À°½ÅÃ»
     document.location.href = "/10_record/record03.html";
  } 
     if(num == 'record04') {			           // 9¹Ú10ÀÏ ±³À°½ÅÃ»
     document.location.href = "/10_record/record04.html";
  }




  //***** ¸ÞÀÎ *****  °­¼ø³²Àåµ¶´ë¼Ò°³ 
   if(num == 'kang01') {			                 // ¿øÀå¼Ò°³
     document.location.href = "/01_kang/kang01.html";
   }
   if(num == 'kang02') {			                 // ¾ð·Ðº¸µµ
     document.location.href = "/01_kang/kang02.html";
   }
   if(num == 'kang02_1') {			                 // ¾ð·Ðº¸µµ1
     document.location.href = "/01_kang/kang02_1.html";
   }   
   if(num == 'kang02_2') {			                 // ¾ð·Ðº¸µµ2
     document.location.href = "/01_kang/kang02_2.html";
   } 
   if(num == 'kang02_3') {			                 // ¾ð·Ðº¸µµ3
     document.location.href = "/01_kang/kang02_3.html";
   } 
   if(num == 'kang02_4') {			                 // ¾ð·Ðº¸µµ4
     document.location.href = "/01_kang/kang02_4.html";
   } 
   if(num == 'kang02_5') {			                 // ¾ð·Ðº¸µµ5
     document.location.href = "/01_kang/kang02_5.html";
   } 
   if(num == 'kang02_6') {			                 // ¾ð·Ðº¸µµ6
     document.location.href = "/01_kang/kang02_6.html";
   } 
   if(num == 'kang02_7') {			                 // ¾ð·Ðº¸µµ7
     document.location.href = "/01_kang/kang02_7.html";
   } 
   if(num == 'kang02_8') {			                 // ¾ð·Ðº¸µµ8
     document.location.href = "/01_kang/kang02_8.html";
   }    
   if(num == 'kang02_9') {			                 // ¾ð·Ðº¸µµ9
     document.location.href = "/01_kang/kang02_9.html";
   }   
   if(num == 'kang02_10') {			                 // ¾ð·Ðº¸µµ10
     document.location.href = "/01_kang/kang02_10.html";
   }    
   if(num == 'kang03') {					        //  Ã¥¼Ò°³
      document.location.href = "/01_kang/kang03.html";
   }
   if(num == 'kang04') {			                 // °­¼ø³²°¶·¯¸®
     document.location.href = "/01_kang/kang04.html";
   }
   if(num == 'kang05') {			                 // 
     document.location.href = "/01_kang/kang05.html";
   }
   if(num == 'kang06') {			                 // ¿À½Ã´Â ±æ
     document.location.href = "/01_kang/kang06.html";
   }
   if(num == 'kang07') {			                 // °è¿­»ç
     document.location.href = "/01_kang/kang07.html";
   }



  //***** ¸ÞÀÎ *****  °­¼ø³²ÀÚ¿¬°Ç°­±³À°¿ø
   if(num == 'ed01') {			                 // Àåµ¶´ë¼Ò°³
     document.location.href = "/02_education/education01.html";
   }
   if(num == 'ed02') {			                 // °­¼ø³²ÀÚ¿¬°Ç°­±³À°
     document.location.href = "/02_education/education02.html";
   }
   if(num == 'ed07') {			                 // ÀÚ°ÝÁõ¼Ò°³
     document.location.href = "/02_education/education03.html";
   }
   if(num == 'ed03') {			                 // Ä·ÇÁÀå¼Ò ¹× ½Ã¼³
     document.location.href = "/04_nature/nature01.html";
   }
   if(num == 'ed04') {			                 // Ä·ÇÁÀå¼Ò ¹× ½Ã¼³
     document.location.href = "/04_nature/nature02.html";
   }
   if(num == 'ed05') {			                 // Ä·ÇÁÀå¼Ò ¹× ½Ã¼³
     document.location.href = "/04_nature/nature03.html";
   }
   if(num == 'ed06') {			                 // Ä·ÇÁÀå¼Ò ¹× ½Ã¼³
     document.location.href = "/04_nature/nature04.html";
   }
   if(num == 'ed08') {			                 // Ä·ÇÁÀå¼Ò ¹× ½Ã¼³
     document.location.href = "/04_nature/nature05.html";
   }




  //***** ¸ÞÀÎ *****  ¿Ã¹Ù¸¥¹ä»ó¿îµ¿º»ºÎ
   if(num == 'all01') {			                 // ¿Ã¹ä¿îµ¿
      document.location.href = "/03_all/all01.html";
   }
   if(num == 'all02') {			                 // ¿Ã¹ä´Ü½ÄÄ¡·á-¾ÏÄ¡·á
      document.location.href = "/03_all/all02.html";
   }
   if(num == 'all022') {			                 // ¿Ã¹ä´Ü½ÄÄ¡·á-´ç´¢Ä¡·á
      document.location.href = "/03_all/all022.html";
   }
   if(num == 'all023') {			                 // ¿Ã¹ä´Ü½ÄÄ¡·á-°íÇ÷¾ÐÄ¡·á
      document.location.href = "/03_all/all023.html";
   }
   if(num == 'all024') {			                 // ¿Ã¹ä´Ü½ÄÄ¡·á-¾ÆÅäÇÇÄ¡·á
      document.location.href = "/03_all/all024.html";
   } 
   if(num == 'all025') {			                 // ¿Ã¹ä´Ü½ÄÄ¡·á-°¢Á¾ÁúÈ¯Ä¡·á
      document.location.href = "/03_all/all025.html";
   }    
   if(num == 'all03') {			                 // ¿Ã¹ä°Ç°­Á¤º¸
      document.location.href = "/03_all/all03.html";
   }
   if(num == 'all04') {			                 // ¿Ã¹äÁ¶Á÷
      document.location.href = "/03_all/all04.html";
   }
   if(num == 'all05') {			                 // º¸µµÀÚ·á
      document.location.href = "/03_all/all05.html";
   }	  
   if(num == 'all06') {			                 // º¸µµÀÚ·á
      document.location.href = "/03_all/all06.html";
   }
   if(num == 'all07') {			                 // º¸µµÀÚ·á
      document.location.href = "/03_all/all07.html";
   }
   
   


  //***** ¸ÞÀÎ *****  ÀÚ¿¬°Ç°­½ºÆä¼È
   if(num == 'na01') {			                 // °üÀå¿ä¹ý
     document.location.href = "/04_nature/nature01.html";
   }
   if(num == 'na02') {			                 // µÈÀåÂòÁú
     document.location.href = "/04_nature/nature02.html";
   }   
   if(num == 'na03') {			                 // Ç³¿å,³Ã¿Â¿å
     document.location.href = "/04_nature/nature03.html";
   }
   if(num == 'na04') {			                 // ´Ü½Å
     document.location.href = "/04_nature/nature04.html";
   }   
    if(num == 'na05') {			                 // ÀÚ¿¬°Ç°­ Á¦Ç°Á¤º¸
     document.location.href = "/04_nature/nature05.html";
   }

     //***** ¸ÞÀÎ *****  ÀÚ¿¬°Ç°­½ºÆä¼È
   if(num == 'pr01') {			                 // °üÀå¿ä¹ý
     document.location.href = "/12_program/program01.html";
   }
   if(num == 'pr02') {			                 // µÈÀåÂòÁú
     document.location.href = "/12_program/program02.html";
   }   
   if(num == 'pr03') {			                 // Ç³¿å,³Ã¿Â¿å
     document.location.href = "/12_program/program03.html";
   }
   if(num == 'pr04') {			                 // ´Ü½Å
     document.location.href = "/12_program/program05.html";
   }   
    if(num == 'pr05') {			                 // ÀÚ¿¬°Ç°­ Á¦Ç°Á¤º¸
     document.location.href = "/12_program/program06.html";
   }




  //***** ¸ÞÀÎ *****  Å«»ç¶û»õ»ý¸íÀç´Ü
   if(num == 'lo01') {			                 // Å«»ç¶û»õ»ý¸í°øµ¿Ã¼
     document.location.href = "/05_love/love01.html";
   }
   if(num == 'lo02') {			                 // µ¿¿µ»ó°­·Ð
     document.location.href = "/05_love/love02.html";
   }
   if(num == 'lo03') {			                 // »õ¸ö°ü¸® °øÁö
     document.location.href = "/05_love/love03.html";
   }
   if(num == 'lo032') {			                 // »õ¸ö°ü¸® Q&A
     document.location.href = "/05_love/love032.html";
   }
   if(num == 'lo033') {			                 // »õ¸ö°ü¸® °¶·¯¸®
     document.location.href = "/05_love/love033.html";
   }   
   if(num == 'lo04') {			                 // Á¶Àº»ê°¶·¯¸®
     document.location.href = "/05_love/love04.html";
   }
   if(num == 'lo011') {			                 // »õ»ý¸í°øµ¿Ã¼¼Ò°³
     document.location.href = "/05_love/love01.html?id=ch_video&notice_id=&s=&tot=&search=&search_cond=&no=42&print_no=38&exec=view&npop=&sort=&desc=&search_cat_no=";
   }
      


	//***** ¸ÞÀÎ *****  Ä¿¹Â´ÏÆ¼ 
   if(num == 'co01') {			                 // °øÁö»çÇ×
     document.location.href = "/06_community/community01.html";
   }
   if(num == 'co02') {			                 // °Ç°­ÄÁ¼³ÆÃ
     document.location.href = "/06_community/community02.html";
   }
   if(num == 'co03') {			                 // ÀÚÀ¯°Ô½ÃÆÇ
     document.location.href = "/06_community/community03.html";
   }
   if(num == 'co04') {			                 // ±³À°¿øÃ¼Çè¼ö±â¹æ
     document.location.href = "/06_community/community04.html";
   }
   if(num == 'co05') {			                 // UCC°¶·¯¸®
     document.location.href = "/06_community/community05.html";
   }
   if(num == 'co06') {			                 // ¹æ¸í·Ï
     document.location.href = "/06_community/community06.html";
   }
      
	  	//***** ¸ÞÀÎ *****  Ä¿¹Â´ÏÆ¼ 
   if(num == 'gi01') {			                 // ±â»ê¸®
     document.location.href = "/13_gisanri/01.html";
   }
   if(num == 'gi02') {			                 // ±â»ê¸®
     document.location.href = "/13_gisanri/02.html";
   }
   if(num == 'gi03') {			                 // ±â»ê¸®
     document.location.href = "/13_gisanri/03.html";
   }
   if(num == 'gi04') {			                 // ±â»ê¸®
     document.location.href = "/13_gisanri/04.html";
   }
   if(num == 'gi05') {			                 // ±â»ê¸®
     document.location.href = "/13_gisanri/05.html";
   }
   if(num == 'gi06') {			                 // ±â»ê¸®
     document.location.href = "/13_gisanri/06.html";
   }
   if(num == 'gi07') {			                 // ±â»ê¸®
     document.location.href = "/13_gisanri/07.html";
   }
      
	 	  


   //***** ÆË¾÷*****
   if(num == 300) {			               // ¹ý±³À° ¿µ»ó¼¾ÅÍ
  window.open('/popup/20090616_1.html', 'popup', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=958,height=650,left=0,top=0')
  }
   if(num == 'new') {			               // ±æµ¿½Å»ç¿Á
  window.open('/07_other/new.html', 'pop', 'toolbar=no,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width=900,height=780,left=0,top=0')
  }  

}




function school_imgchg(img)	 {
	document.school.preview.src ="/08_youth/"+img
}


function allblur() {
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin = allblur;







<!--
var poll_id = '';
var poll_exec = '';
 
// sucMode : '1' : ·Î±×ÀÎ ¼º°ø ¸Þ½ÃÁö Ãâ·Â
//			 '2' : ·Î±×ÀÎÈÄ À©µµ¿ì ´Ý±â
//			 '3' : ·Î±× ¾Æ¿ô ½ºÅ² Ç¥½Ã ( ±âº» °ª )
function loginPopup ( skinName, width, height, left, top, scroll_yn, sucMode, successURL, message ) {
	var url = '';
	var bDir = '';
	if ( typeof(baseDir   ) != 'undefined' ) bDir = baseDir;
	if ( typeof(skinName  ) == 'undefined' ) skinName = '';
	if ( typeof(sucMode   ) == 'undefined' ) sucMode = '1';
	if ( typeof(successURL) == 'undefined' ) successURL = '';
	if ( typeof(message   ) == 'undefined' ) message = '';
 
	url = bDir + 'dlogin.php?login_skin_name=' + skinName + '&suc_mode=' + sucMode;
	if ( typeof(id      ) != 'undefined' ) url += '&id=' + id;
	if ( typeof(poll_id ) != 'undefined' ) url += '&poll_id=' + poll_id;
 
	if ( successURL != '') url += '&succ_url='+ encodeURI (successURL);
	if ( message	!= '') url += '&message=' + encodeURI (message   );
	url += '&lg=Y';
	var loginWin = window.open(url,'loginWin','toolbar=no,menubar=no,resizable=no,scrollbars=' + scroll_yn + ',left=' + left + ',top=' + top + ',width=' + width + ',height=' + height );
	loginWin.focus();
}
// skinName : ½ºÅ²¸í
// successURL : ¼º°ø½Ã ÀÌµ¿ÇÒ °æ·Î¸í
function loginPage ( skinName, successURL ) {
	var url = '';
	var bDir = '';
	if ( typeof(baseDir   ) != 'undefined' ) bDir = baseDir;
	if ( typeof(skinName  ) == 'undefined' ) skinName = '';
	if ( typeof(successURL) == 'undefined' ) successURL= '';
	url = bDir + 'dlogin.php?login_skin_name=' + skinName +  '&suc_mode=4'  + '&succ_url='  + escape (successURL);
	var loginWin = document.location.href = url;
	loginWin.focus();
}
 
function loginFormSubmit(myForm) {
	var url ='';
	if ( typeof(baseDir) != 'undefined' ) url = baseDir + 'login_ok.php';
	else url = '/login_ok.php';
 
	var first = true;
	var suc_mode = '';
	if ( typeof ( myForm.suc_mode ) != 'undefined' ) {
		suc_mode = myForm.suc_mode.value;
		if ( suc_mode != '' ) { url += '?suc_mode=' + suc_mode; first = false; }
	}
 
	url += getLoginUrl (first);
	if ( typeof ( myForm.message  ) != 'undefined' ) myForm.message.value  = decodeURI ( myForm.message.value );
	if ( typeof ( myForm.succ_url ) != 'undefined' ) myForm.succ_url.value = decodeURI ( myForm.succ_url.value);
 
	myForm.action = url;
 
	if ( myForm.user_id.value  == '' ) { alert ("ID¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä."); myForm.user_id.focus(); return false; }
	if ( myForm.password.value == '' ) { alert ("Password¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä."); myForm.password.focus(); return false; }
	return true;
}
 
function logout(myForm) {
	var formMode = 1;
	if ( typeof(myForm) == 'undefined' ) {
		myForm = document.logoutForm;
		formMode = 2;
	}
	var url ='';
	if ( typeof(baseDir) != 'undefined' ) url = baseDir + 'logout_ok.php';
	else url = 'logout_ok.php';
	url += getLoginUrl (true);
	if ( typeof ( myForm.message  ) != 'undefined' ) myForm.message.value  = encodeURI ( myForm.message.value  );
	if ( typeof ( myForm.succ_url ) != 'undefined' ) myForm.succ_url.value = encodeURI ( myForm.succ_url.value );
 
	myForm.action = url;
 
	if ( formMode == 1 ) return true;
	else myForm.submit();
}
 
function getLoginUrl (first) {
	var url = '';
	if ( typeof(id   ) != 'undefined' && id   != '' ) if ( first ) { url += '?id='   + id  ; first = false;} else { url += '&id='   + id  ; }
	if ( typeof(npop ) != 'undefined' && npop != '' ) if ( first ) { url += '?npop=' + npop; first = false;} else { url += '&npop=' + npop; }
	if ( typeof(exec ) != 'undefined' && exec != '' ) if ( first ) { url += '?exec=' + exec; first = false;} else { url += '&exec=' + exec; }
	if ( typeof(no   ) != 'undefined' && no	  != '' ) if ( first ) { url += '?no='   + no  ; first = false;} else { url += '&no='   + no  ; }
	if ( typeof(s    ) != 'undefined' && s    != '' ) if ( first ) { url += '?s='    + s   ; first = false;} else { url += '&s='    + s   ; }
 
	if ( typeof(poll_id  ) != 'undefined' && poll_id  != '' ) if ( first ) { url += '?poll_id='  + poll_id  ; first = false; } else { url += '&poll_id='  + poll_id  ; }
	if ( typeof(poll_exec) != 'undefined' && poll_exec!= '' ) if ( first ) { url += '?poll_exec='+ poll_exec; first = false; } else { url += '&poll_exec='+ poll_exec; }
	return url;
}
 
function comfirmClick(argu1) {
	if ( typeof(opener	 ) != 'undefined' && typeof(opener.document) == 'object' ) {
		if ( argu1 == '' ) {
			opener.focus();
			self.close();
		} else {
			document.location.replace(argu1);
		}
	} else {
		if ( argu1 == '' ) document.location.replace('/');
		else document.location.replace(argu1);
	}
}
var memberWin = null;
// mode : '1' : ÆË¾÷¿¡¼­   È¸¿ø °¡ÀÔ ÆäÀÌÁö ¿­±â
//        '2' : ÇöÀçÃ¢¿¡¼­ È¸¿ø °¡ÀÔ ÆäÀÌÁö ¿­±â
// successURL : °¡ÀÔ ¼º°ø½Ã ÀÌµ¿ ÆäÀÌÁö
// width      : ÆË¾÷ À©µµ¿ì °¡·Î Å©±â
// height     : ÆË¾÷ À©µµ¿ì ¼¼·Î Å©±â
// scroll     : ÆË¾÷ À©µµ¿ì ½ºÅ©·Ñ¹Ù »ý¼º ¿©ºÎ ( 'Y', 'N' )
function openMemberCB (gubun, mode, successURL, width, height, scroll, user_id) {
	if ( typeof(successURL) == 'undefined' ) successURL = '' ;
	if ( memberWin != null ) memberWin.close();
	var url = '';
	if ( typeof(baseDir) != 'undefined' ) url = baseDir;
 
	if      ( gubun == 'insert'      ) url += 'member_register.php';
	else if ( gubun == 'update'      ) url += 'member_register.php';
	else if ( gubun == 'secession'   ) url += 'member_secession.php';
	else if ( gubun == 'infor_search') url += 'member_infor_search.php';
	else if ( gubun == 'view'        ) url += 'member_view.php';
 
	if ( typeof(id) == 'undefined' ) {
		if ( successURL != '' ) {
			url += '?succ_url=' + escape (successURL);
			if      ( gubun == 'update'      ) url += '&mexec=update';
			else if ( gubun == 'secession'   ) url += '&mode=' + mode;
			else if ( gubun == 'infor_search') url += '&mode=' + mode;
			else if ( gubun == 'view'        ) url += '&user_id=' + user_id;
		} else {
			if      ( gubun == 'update'      ) url += '?mexec=update';
			else if ( gubun == 'secession'   ) url += '?mode=' + mode;
			else if ( gubun == 'infor_search') url += '?mode=' + mode;
			else if ( gubun == 'view'        ) url += '?user_id=' + user_id;
		}
	} else {
		if ( successURL != '' ) {
			url += '?id=' + id + '&succ_url=' + escape (successURL);
		} else {
			url += '?id=' + id;
		}
		if      ( gubun == 'update'      ) url += '&mexec=update';
		else if ( gubun == 'secession'   ) url += '&mode=' + mode;
		else if ( gubun == 'infor_search') url += '&mode=' + mode;
		else if ( gubun == 'view'        ) url += '&user_id=' + user_id;
	}
 
	if ( mode == '1' ) {
        scroll = ( scroll == 'Y' ) ? "yes" : "no";
		var target = '';
		if      ( gubun == 'insert'      ) target += 'memberWin';
		else if ( gubun == 'update'      ) target += 'memberWin';
		else if ( gubun == 'secession'   ) target += 'secessWin';
		else if ( gubun == 'infor_search') target += 'inforsWin';
		memberWin = window.open(url, target,'toolbar=no,menubar=no,resizable=no,scrollbars=' + scroll + ',width=' + width + ',height=' + height );
		memberWin.focus();
	} else if ( mode == '2' ) {
		document.location.href = url;
	}
}
 
function openMemberRegister (mode, successURL, width, height, scroll) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_register_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_register_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('insert',mode, successURL, width, height, scroll);
}
 
function openMemberUpdate (mode, successURL, width, height, scroll ) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_update_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_update_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('update',mode, successURL, width, height, scroll);
}
 
function openMemberSecession(mode, successURL, width, height, scroll) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_secession_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_secession_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('secession',mode, successURL, width, height, scroll);
}
 
function openMemberInforSearch(mode, successURL, width, height, scroll) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_infor_search_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_infor_search_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('infor_search',mode, successURL, width, height, scroll);
}
 
function openMemberView (user_id, mode, successURL, width, height, scroll ) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_view_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_view_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('view',mode, successURL, width, height, scroll, user_id);
}
//-->



var memberWin = null;
// mode : '1' : ÆË¾÷¿¡¼­   È¸¿ø °¡ÀÔ ÆäÀÌÁö ¿­±â
//        '2' : ÇöÀçÃ¢¿¡¼­ È¸¿ø °¡ÀÔ ÆäÀÌÁö ¿­±â
// successURL : °¡ÀÔ ¼º°ø½Ã ÀÌµ¿ ÆäÀÌÁö
// width      : ÆË¾÷ À©µµ¿ì °¡·Î Å©±â
// height     : ÆË¾÷ À©µµ¿ì ¼¼·Î Å©±â
// scroll     : ÆË¾÷ À©µµ¿ì ½ºÅ©·Ñ¹Ù »ý¼º ¿©ºÎ ( 'Y', 'N' )
function openMemberCB (gubun, mode, successURL, width, height, scroll, user_id) {
	if ( typeof(successURL) == 'undefined' ) successURL = '' ;
	if ( memberWin != null ) memberWin.close();
	var url = '';
	if ( typeof(baseDir) != 'undefined' ) url = baseDir;
 
	if      ( gubun == 'insert'      ) url += 'member_register.php';
	else if ( gubun == 'update'      ) url += 'member_register.php';
	else if ( gubun == 'secession'   ) url += 'member_secession.php';
	else if ( gubun == 'infor_search') url += 'member_infor_search.php';
	else if ( gubun == 'view'        ) url += 'member_view.php';
 
	if ( typeof(id) == 'undefined' ) {
		if ( successURL != '' ) {
			url += '?succ_url=' + escape (successURL);
			if      ( gubun == 'update'      ) url += '&mexec=update';
			else if ( gubun == 'secession'   ) url += '&mode=' + mode;
			else if ( gubun == 'infor_search') url += '&mode=' + mode;
			else if ( gubun == 'view'        ) url += '&user_id=' + user_id;
		} else {
			if      ( gubun == 'update'      ) url += '?mexec=update';
			else if ( gubun == 'secession'   ) url += '?mode=' + mode;
			else if ( gubun == 'infor_search') url += '?mode=' + mode;
			else if ( gubun == 'view'        ) url += '?user_id=' + user_id;
		}
	} else {
		if ( successURL != '' ) {
			url += '?id=' + id + '&succ_url=' + escape (successURL);
		} else {
			url += '?id=' + id;
		}
		if      ( gubun == 'update'      ) url += '&mexec=update';
		else if ( gubun == 'secession'   ) url += '&mode=' + mode;
		else if ( gubun == 'infor_search') url += '&mode=' + mode;
		else if ( gubun == 'view'        ) url += '&user_id=' + user_id;
	}
 
	if ( mode == '1' ) {
        scroll = ( scroll == 'Y' ) ? "yes" : "no";
		var target = '';
		if      ( gubun == 'insert'      ) target += 'memberWin';
		else if ( gubun == 'update'      ) target += 'memberWin';
		else if ( gubun == 'secession'   ) target += 'secessWin';
		else if ( gubun == 'infor_search') target += 'inforsWin';
		memberWin = window.open(url, target,'toolbar=no,menubar=no,resizable=no,scrollbars=' + scroll + ',width=' + width + ',height=' + height );
		memberWin.focus();
	} else if ( mode == '2' ) {
		document.location.href = url;
	}
}
 
function openMemberRegister (mode, successURL, width, height, scroll) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_register_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_register_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('insert',mode, successURL, width, height, scroll);
}
 
function openMemberUpdate (mode, successURL, width, height, scroll ) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_update_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_update_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('update',mode, successURL, width, height, scroll);
}
 
function openMemberSecession(mode, successURL, width, height, scroll) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_secession_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_secession_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('secession',mode, successURL, width, height, scroll);
}
 
function openMemberInforSearch(mode, successURL, width, height, scroll) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_infor_search_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_infor_search_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('infor_search',mode, successURL, width, height, scroll);
}
 
function openMemberView (user_id, mode, successURL, width, height, scroll ) {
	if ( typeof(mode) == 'undefined' || mode == '' ) mode = '1';
	if ( mode == '1' ) {
		if ( typeof(width ) == 'undefined' || width  == '' ) width  = member_view_popup_width;
		if ( typeof(height) == 'undefined' || height == '' ) height = member_view_popup_height;
		if ( typeof(scroll) == 'undefined' || scroll == '' ) scroll = 'Y';
	}
	openMemberCB ('view',mode, successURL, width, height, scroll, user_id);
}