// ÁÖ¸Þ´º ¸µÅ©
function go_link_1(){document.location.href="/sub01/index.php";}
function go_link1_1(){document.location.href="/sub01/index.php?left=1";}
function go_link1_2(){document.location.href="/sub01/index.php?left=2";}
function go_link1_3(){document.location.href="/sub01/index.php?left=3";}
function go_link1_4(){document.location.href="/sub01/index.php?left=4";}


function go_link_2(){document.location.href="/sub02/index.php";}
function go_link2_1(){document.location.href="/sub02/01_01.php";}
function go_link2_2(){document.location.href="/sub02/02_01.php";}
function go_link2_3(){document.location.href="/sub02/03_01_list.php";}
function go_product_1(){document.location.href="/sub02/02_02.php";}
function go_product_2(){document.location.href="/sub02/03_01_3.php";}
function go_product_3(){document.location.href="/sub02/02_01_5.php";}

function go_link_3(){document.location.href="/sub03/index.php";}



function go_link_4(){document.location.href="/sub04/index.php";}

function go_link_5(){document.location.href="/sub05/index.php";}



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//ÄÚ¸ÇÆ® °Ë»ç
function comment_check(){

	var frm = document.comment;

	if( frm.name.value == ""){
	  alert("ÀÌ¸§À» ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.name.focus();
	  return false;
	}
	if( frm.passwd.value == ""){
	  alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.passwd.focus();
	  return false;
	}
	if( frm.comment.value == ""){
	  alert("³»¿ëÀ» ÀÔ·Â ÇÏ¼¼¿ä.");
		frm.comment.value='';
	  frm.comment.focus();
	  return false;
	}
	return true;
}

//ÄÚ¸ÇÆ® °Ë»ç(È¸¿ø¸¸ ¾²±â °¡´ÉÇÒ¶§)
function comment_check2(){

	var frm = document.comment;

	if( frm.comment.value == ""){
	  alert("³»¿ëÀ» ÀÔ·Â ÇÏ¼¼¿ä.");
		frm.comment.value='';
	  frm.comment.focus();
	  return false;
	}
	return true;
}

//°Ë»ö¾î ÀÔ·Â °Ë»ç
function find_check(){

	var frm = document.find;
	
	if( frm.keyword.value == ""){
	  alert("°Ë»ö¾î¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.keyword.focus();
	  return false;
	}
	
	return true;
}

//¾ÆÀÌµð Ã£±â °Ë»ç
function id_check(){

	var frm = document.id_find;
	
	if( frm.name.value == ""){
	  alert("ÀÌ¸§À» ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.name.focus();
	  return false;
	}
	if( frm.jumin1.value == ""){
	  alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.jumin1.focus();
	  return false;
	}
	if( frm.jumin2.value == ""){
	  alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.jumin2.focus();
	  return false;
	}
	
	return true;
}

//ºñ¹Ð¹øÈ£ Ã£±â °Ë»ç
function pass_check(){

	var frm = document.pass_find;
	
	if( frm.idno.value == ""){
	  alert("¾ÆÀÌµð¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.idno.focus();
	  return false;
	}
	if( frm.name.value == ""){
	  alert("ÀÌ¸§À» ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.name.focus();
	  return false;
	}
	if( frm.jumin1.value == ""){
	  alert("ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.jumin1.focus();
	  return false;
	}
	if( frm.jumin2.value == ""){
	  alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
	  frm.jumin2.focus();
	  return false;
	}
	
	return true;
}

//È¸¿øÅ»Åð °Ë»ç
function out_Check(){	
	if(!confirm("Á¤¸» Å»Åð ÇÏ½Ã°Ú½À´Ï±î?"))
  {	
		return false;
  }else{

    if( document.out.comment.value == ""){
		  alert("³»¿ëÀ» ÀÔ·Â ÇÏ¼¼¿ä.");
		  document.out.comment.focus();
			return false;
		}
		return true;
  }	
}

//»èÁ¦ °Ë»ç
function del_check(val){	
	if(!confirm("Á¤¸» »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?"))
  {			
  }else{
		location.href=val;		
  }	
}

//·Î±×ÀÎ ÇÏ¼¼¿ä
function login_check(){
	alert('·Î±×ÀÎ ÇÏ¼¼¿ä!');
	location.href='/member/login.php';
}

//ÆË¾÷ ¶ç¿ì±â
function OpenWin(a,b,c)
{
  window.open(a,b,c)
}
	
//¾ÆÀÌÇÁ·¹ÀÓ
function reSize(){
	var objBody = ifrm.document.body;
	var objFrame = document.all["ifrm"];

	objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
	objFrame.style.width = '100%';
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);}
  
  
  
//·Ñ¿À¹ö
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



/*
' --------------------------------------------------------------------------------------------------
' Function    : fc_all_blur()
' Description : Å¬¸¯ÇÒ¶§ ÀÚ±¹À» ¾ø¾Ø´Ù.
' Argument    : 
' Return      : 
' --------------------------------------------------------------------------------------------------
*/
function fc_all_blur()
{
   for (i = 0; i < document.links.length; i++) document.links[i].onfocus = document.links[i].blur;
}
document.onfocusin = fc_all_blur;



function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

 
// µ¿¿µ»ó Á¦¾î

function f_link_movie1()
{
   fc_center_win("/etc/movie1.php","win_movie",382,350);
}
function f_link_mov_close()
{
  self.close();
}

function f_link_movie2()
{
   fc_center_win("/etc/movie2.php","win_movie",382,350);
}
function f_link_movie3()
{
   fc_center_win("/etc/movie3.php","win_movie",382,350);
}

// °Ô½ÃÆÇ »õÃ¢ ¿­±â
function f_link_board1()
{
   fc_center_win("http://www.jinsungck.com/include/board.php","board",700,600);
}

/*
' -----------------------------------------------------------------------------
' Function    : fc_center_win(ars_url,ars_win_name,ari_width,ari_height)
' Description : °¡¿îµ¥ À©µµ¿ì ¿­±â
' -----------------------------------------------------------------------------
*/
function fc_center_win(ars_url,ars_win_name,ari_width,ari_height)
{
   var li_width  = (screen.width  - ari_width)  / 2;
   var li_height = (screen.height - ari_height) / 2;
   var lo_win = window.open(ars_url,ars_win_name,'status=no,menubar=0,locationbar=0,toolbar=0,scrollbars=1,resizable=0,left='+li_width+',top='+li_height+',width='+ari_width+',height='+ari_height);

   return lo_win;
}
