
///
var isnMonths=new Array("1","2","3","4","5","6","7","8","9","10","11","12");
var isnDays= new Array("ÀÏ¿äÀÏ","¿ù¿äÀÏ","È­¿äÀÏ","¼ö¿äÀÏ","¸ñ¿äÀÏ","±Ý¿äÀÏ","Åä¿äÀÏ","ÀÏ¿äÀÏ");
today=new Date();
//
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() { //v6.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 menu(name)  {  
submenu=eval("submenu_"+name+".style");  
	if(name==1){
		 name2=eval("submenu_2.style");
		 name2.display='none';
		 name3=eval("submenu_3.style");
		 name3.display='none';
		 submenu.display='block';
		 
		}
	else if(name==2){
		 name1=eval("submenu_1.style");
		 name1.display='none';
		 name3=eval("submenu_3.style");
		 name3.display='none';
		 submenu.display='block';
		}	
	else{
		 name1=eval("submenu_1.style");
		 name1.display='none';
		 name2=eval("submenu_2.style");
		 name2.display='none';
		 submenu.display='block';
		}
}

  
//·¹ÀÌ¾î ¹ÝÀü½ÃÅ°±â  
function change_method(num){  

   for(i=1; i<=2; i++){ 
      var each;
      each = ("strRow" + i);
      if (i == num){
           eval(each+".style.display=''");

      }else{
           eval(each+".style.display='none'");

      }
  }
} //end function

//·¹ÀÌ¾î ¹ÝÀü½ÃÅ°±â   °áÈ¥/ºÎÀ½
function change_method_m(num){  

   for(i=1; i<=2; i++){ 
      var each;
      each = ("strRowm" + i);
      if (i == num){
           eval(each+".style.display=''");

      }else{
           eval(each+".style.display='none'");

      }
  }
} //end function

//·¹ÀÌ¾î ¹ÝÀü½ÃÅ°±â  
function change_tax(num){  
 
   for(i=1; i<=3; i++){ 
      var each;
      each = ("tax" + i);
      if (i == num){
           eval(each+".style.display=''");

      }else{
           eval(each+".style.display='none'");

      }
  }
} //end function



function econo_open()
{
	window.open("/econo/econo_main.php","_econo_all","scrollbars=yes,width=650,height=770");	
}

function open_suggest()
{
	window.open("/suggest.htm","_gisa_mail","scrollbars=yes,width=670,height=640");	
}

function open_gisa_jebo()
{
	window.open("/gisa_jebo.htm","_gisa_mail","scrollbars=yes,width=670,height=480");	
}
function open_card_pay()
{
	window.open("/card_pay.htm","_gisa_mail","scrollbars=yes,width=670,height=500");	
}
function open_cult_pay(arg1,arg2)
{
	window.open("/card_pay_cult.htm?main_product=[¼¼Á¤¹®È­¼¾ÅÍ]"+arg1+"&price="+arg2,"_gisa_mail","scrollbars=yes,width=670,height=500");	
}
function open_news_mail(arg)
{
	window.open("/news_mail.htm?r_id="+arg,"_news_mail","scrollbars=yes,width=670,height=480");	
}
function open_print(arg)
{
	window.open("/print_news.htm?r_id="+arg,"_gisa_mail","scrollbars=yes,width=676,height=680");		
}
function open_print2(arg)
{
	window.open("/print_sejong.htm?r_id="+arg,"_gisa_mail","scrollbars=yes,width=676,height=680");		
}
function open_movie(arg)
{
	window.open("/movie_play.htm?no="+arg,"_gisa_mail","scrollbars=yes,width=620,height=680");		
}

function open_sejong(arg)
{
	window.open("/sejeong_view.htm?r_id="+arg,"_sejung","width=710,height=600,toolbar=no,scrollbars=yes");
}

function open_f_banner(URL,target,s1,s2,s3,s4)
{
	window.open(URL,target,"width="+s1+",height="+s2+",toolbar="+s3+",scrollbars="+s4);
}




/*---- font-size ----*/
var fontSize = 11;

function fontPlus() {
	if (fontSize < 17) {
		fontSize = fontSize + 2;
		setFaceSize();
	}
}
function fontMinus() {
	if (fontSize >= 11) {
		fontSize = fontSize - 2;
		setFaceSize();
	}
}
function setFaceSize() {
	lineHeight = fontSize+Math.round(1.1*fontSize);
	obj = document.getElementById("font");
	obj.style.fontSize = fontSize+"pt";
	obj.style.lineHeight = lineHeight+"px"
}

function open_link(arg)
{
	window.open(arg,"_import_link","width=750,height=600,toolbar=no,scrollbars=yes");
}
function open_link_tax(arg)
{
	window.open(arg,"_import_link","width=680,height=600,toolbar=no,scrollbars=yes");
}

//¹è³Ê¸µÅ©
function banner_link(_url,_target,_width,_height,_toolbar,_scrollbars,_resize)
{
	
	if(_toolbar=="yes")
	{
		window.open(_url,_target,"");	
	}else{
		window.open(_url,_target,"width="+_width+",height="+_height+",toolbar="+_toolbar+",scrollbars="+_scrollbars+",resizable="+_resize);	
	}
}



function chk_search(arg)
{
	//alert("°Ë»öÃ¼Å©");	
	var form=document.article_search;
	
	if(!form.s_string.value)
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¿©ÁÖ¼¼¿ä");
		form.s_string.focus();
		return false;	
	}
	if(arg.length==0)
	{
		alert("·Î±×ÀÎÀ» ÇÏ¿©ÁÖ¼¼¿ä");
		form.s_string.focus();
		return false;	
	}
	return true;
	
}

function chk_search_detail(arg)
{
	var form=document.search_news;
	if(arg.length==0)
	{
		alert("·Î±×ÀÎÀ» ÇÏ¿©ÁÖ¼¼¿ä");
		form.s_string.focus();
		return false;	
	}
	form.submit();
	
}