// onfocus='this.blur()'
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;


// MOUSE on/off
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_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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 Layers_findObj(n, d) { //v4.0
	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=Layers_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function Layers_showHideLayers() { //v3.0
	var i,p,v,obj,args=Layers_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=Layers_findObj(args[i]))!=null) { v=args[i+2];
	  if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
	  obj.visibility=v; }
}


//¿À¸¥ÂÊ ¸¶¿ì½º ±ÝÁö
//function m_false()
//{
//alert("¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ°Àº »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
//event.cancelBubble = true;
//event.returnValue = false;
//return false;
//}
//document.oncontextmenu=m_false;



// ¾ÆÀÌµðÁßº¹Ã¼Å©
function idcheck()
  {
   window.open ("/union/popup_idcheck.jsp","","width=530,height=200,scrollbars=no");
  }

// ¿ìÆí¹øÈ£Ã£±â
function zipcode()
  {
   window.open ("/union/popup_zipcode.jsp","","width=516,height=300,scrollbars=yes");
  }

// ¾ÆÀÌµðÃ£±â
function find_id()
  {
   window.open ("/member/find_id.jsp","","width=530,height=286,scrollbars=Yes");
  }

// ºñ¹Ð¹øÈ£Ã£±â
function find_pw()
  {
   window.open ("/member/find_pw.jsp","","width=514,height=286,scrollbars=no");
  }

// ÀÌ¸ÞÀÏ¹«´Ü¼öÁý°ÅºÎ
function email()
  {
   window.open ("/global/email.jsp","","width=514,height=222,scrollbars=no");
  }

// °³ÀÎÁ¤º¸º¸È£Á¤Ã¥
function privacy()
  {
   window.open ("/global/privacy.jsp","","width=616,height=400,scrollbars=yes");
  }

//----------------------------------------- Á¶ÇÕ¼Ò°³

// ¾àµµÇÁ¸°Æ®
function popup_mapprint()
  {
   window.open ("/union/popup_location.jsp","","width=597,height=660,scrollbars=no");
  }

//----------------------------------------- Á¶ÇÕ»ç¾È³»

// ¾àµµÇÁ¸°Æ®
function popup_change()
  {
   window.open ("/guide/popup_change.jsp","","width=616,height=300,scrollbars=yes");
  }


//----------------------------------------- »çÀÌ¹ö°øÁ¦Á¶ÇÕ

// ¸ÅÃâ½Å°í¼³¸íº¸±â
function popup_reportinfo()
  {
   window.open ("/union/popup_reportinfo.jsp","","width=600,height=400,scrollbars=yes");
  }

// ¹ÝÇ°½Å°í ÀÏ°ýÆÄÀÏ Àü¼Û¾È³»
function popup_reportfile()
  {
   window.open ("/union/popup_reportfile.jsp","","width=584,height=400,scrollbars=yes");
  }

// ¸ÅÃâ½Å°í ÀÏ°ýÆÄÀÏ Àü¼Û¾È³»
function popup_returnfile()
  {
   window.open ("/union/popup_returnfile.jsp","","width=584,height=400,scrollbars=yes");
  }

// ¸ÅÃâ½Å°í ÀÏ°ýÆÄÀÏ Àü¼Û¾È³»-½Å±Ô
function popup_reportfile_new()
  {
   window.open ("/union/popup_reportfile_new.jsp","","width=900,height=250,scrollbars=no");
  }


// ¸ÅÃâ½Å°í ÀÏ°ýÆÄÀÏ Àü¼Û¾È³»_±âÁ¸
function popup_reportfile_old()
  {
   window.open ("/union/popup_reportfile_old.jsp","","width=584,height=400,scrollbars=yes");
  }

// ±³È¯½Å°í ÀÏ°ýÆÄÀÏ Àü¼Û¾È³»
function popup_exchangefile()
  {
   window.open ("/union/popup_exchangefile.jsp","","width=584,height=400,scrollbars=yes");
  }

// °¢¼­ ÀÛ¼º »ùÇÃ º¸±â
function bill_sample()
  {
   window.open ("/union/popup_bill_sample.jsp","","width=584,height=400,scrollbars=yes");
  }

// À§ÀÓÀå »ùÇÃ º¸±â
function proxy_sample()
  {
   window.open ("/union/popup_proxy_sample.jsp","","width=584,height=400,scrollbars=yes");
  }

// ÃâÀÚÁõ±Ç ¾ç¼öµµ °è¾à¼­ »ùÇÃ º¸±â
function inheritance_sample()
  {
   window.open ("/union/popup_inheritance_sample.jsp","","width=584,height=400,scrollbars=yes");
  }

// ÃâÀÚÁõ±Ç¸íÀÇ°³¼­ Ã»±¸¼­ »ùÇÃ º¸±â
function demand_sample()
  {
   window.open ("/union/popup_demand_sample.jsp","","width=584,height=400,scrollbars=yes");
  }

// ÃâÀÚÁõ±Ç ´ãº¸Á¦°ø Áõ¼­ »ùÇÃ º¸±â
function mortgage_sample()
  {
   window.open ("/union/popup_mortgage_sample.jsp","","width=584,height=400,scrollbars=yes");
  }

// ±³À° ÀÌ¼öÀÚ µî·Ï ÀÏ°ýÆÄÀÏ Àü¼Û¾È³»
function popup_edufile()
  {
   window.open ("/union/popup_edufile.jsp","","width=584,height=400,scrollbars=yes");
  }

// Á¶ÇÕ ÇöÈ² ÀüÃ¼º¸±â ÆË¾÷
function popup_all_view()
  {
   window.open ("/union/popup_all_view.jsp","","width=660,height=400,scrollbars=yes");
  }




/********************************************************************************************************
	¸µÅ©½Ã Æ÷Ä¿½º ¾ø¾Ö´Â ÇÔ¼ö
********************************************************************************************************/
function allblur() {
    for (i = 0; i < document.links.length; i++)
        document.links[i].onfocus = document.links[i].blur;
}
window.onLoad=allblur=allblur

// Á¦Ç°¹Ù·Î°¡±â
function go_select(select_go)
{
	//alert(select_go.value);
	var path = select_go.value;

	if (typeof(path) == "string")
	{
		if (path.length > 0 )
		{
			document.location.href = path;
		}
	}
}
