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_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_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 chkfile() {
	return;//ie7¿¡¼­ ·ÎÄÃÆÄÀÏ Á¢±ÙÀÌ ¸·Èù °ü°è·Î ±×³É ¸®ÅÏÇÒ¼ö¹Û¿¡ ¾øÀ½.. Á¦±æ!

	try {
		var obj = event.srcElement;
		var fname = obj.value;
		var pimg = obj.parentElement.children[0];

		if((/(.jpg|.jpeg|.jpe|.gif|.bmp|.png)$/i).test(fname)) {
			pimg.style.display = "inline";
			pimg.width = 22;
			pimg.height = 18;
			pimg.align = "absmiddle";
			pimg.src = fname;
			pimg.alt = "¹Ì¸®º¸±â";
		}
		else {
			pimg.style.display = "none";
		}
	} catch(e) { window.alert("¿¡·¯ : " + e.number + "\n" + e.description); }
}

/* ·Î±×ÀÎ_È¸¿ø°¡ÀÔ °ü·Ã */


//ÀÌ¿ë¾È³»
function menu02() { self.location.href = "/main.php?menukey=6"; }
function menu02_01() { self.location.href = "/main.php?menukey=7"; }
function menu02_02() { self.location.href = "/main.php?menukey=8"; }
function menu02_02_02() { self.location.href = "/html/sub2_02_02.html"; }//³»¿ëº¸±â
function menu02_02_03() { self.location.href = "/html/sub2_02_03.html"; }//±Û¾²±â


// ·Î±×ÀÎ
function my_info() { self.location.href = "/main.php?menukey=71 "; }
function logo() { self.location.href = "/main.php?menukey=31"; }
function login() { self.location.href = "/main.php?menukey=31"; }
// È¸¿ø°¡ÀÔ STEP1 - ¾à°üµ¿ÀÇ
function m_join() { self.location.href = "/main.php?menukey=33"; }
// È¸¿ø°¡ÀÔ STEP2 - Á¤º¸ÀÔ·Â
function menu10_02_02() { self.location.href = "/main.php?menukey=mem_join2"; }
// È¸¿ø°¡ÀÔ STEP3 - °¡ÀÔ¿Ï·á
function menu10_02_03() { self.location.href = "/main.php?menukey=mem_join3"; }
// ¾ÆÀÌµðºñ¹Ð¹øÈ£Ã£±â
function id_search() { self.location.href = "/main.php?menukey=32"; }


// ¼¿·ºÆ®¹Ú½º ¹Ù·Î°¡±â 20110210 Ãß°¡
function Sel_Shortcut(sel, targetstr){
	var index = sel.selectedIndex;
	if (sel.options[index].value != '') {
		var url = sel.options[index].value;
		if (targetstr == 'blank') {
			var winOpen = window.open(url, "newWin", "");
			winOpen.opener = self;
			winOpen.focus();
		} else {
			var frameobj;
			if (targetstr == '') targetstr = 'self';
			if ((frameobj = eval(targetstr)) != null)
			frameobj.location = sel.options[index].value;
		}
	}
}

// Áñ°ÜÃ£±â ±â´É
	var favoriteurl=window.location;
	var favoritetitle="(»ç)ÇÑ±¹ÀÎÅÍ³ÝPC¹®È­ÇùÈ¸";
	function addfavorites(){
		if (document.all) window.external.AddFavorite(favoriteurl,favoritetitle);
	}

/*
$.fn.extend({
	enter: function() {//plugins creation
		 return this.each(function() {
		   var this_class = $(this).attr("class");
		   if(this_class!='no'){
			if($(this).find("img")[0]){
			var pth = $(this).find("img")[0];
			 //alert($(this).children().attr("href"));
			$(this).focus(function(){
					$(pth).attr("src",pth.src.replace(/_off/g, '_on'));// mouse over Image
				})
				.mouseover(function(){
					$(pth).attr("src",pth.src.replace(/_off/g, '_on'));// mouse over Image
				})
				.mouseout(function(){
					$(pth).attr("src",pth.src.replace(/_on/g, '_off'));// mouse out image
				})
				.blur(function(){
					$(pth).attr("src",pth.src.replace(/_on/g, '_off'));// mouse out image
				});

			}
			}
		 });
	 }
});

$(document).ready(function(){

	$('#gnb_mn ul li a').enter();
	$('#snb ul li a').enter();
	$('#search_service ol li a').enter();
});
*/

	// ·Î±×ÀÎ½Ã ID, PASSWORD ºÎºÐ °ª ÀÖ´ÂÁö È®ÀÎ ¼öÁ¤, 2011.08.25 ÀåÇÑ¹«
	function chkfield() {
		var mi = document.getElementById('mem_id');
		var mp = document.getElementById('mem_passwd');
		var chk = document.getElementById('id_save').checked;
		if(mi.value.length<1) {
			window.alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
			mi.focus();
			return false;
		}
		else if(mp.value.length<3) {
			window.alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
			mp.focus();
			return false;
		}
		else {
			if(chk == true) {
				setCookie('id', mi.value, 30)
			} else if(chk == false) {
				setCookie('id', mi.value, 0)
			}
			/*
			$('#oldIPCA_mem_id').val($('#mem_id').val());
			$('#oldIPCA_mem_pwd').val($('#mem_passwd').val());
			$('#frmOldIPCA').submit();
			window.open('http://old.ipca.or.kr','','width=100px,height=100px').close();
			*/

			return true;
		}
	}
	// IDÀúÀå ºÎºÐ Ãß°¡ 2011.08.25 ÀåÇÑ¹«
	function saveid() {
		var name = 'id';
		var chk = document.getElementById('id_save').checked;
		var value = document.getElementById('mem_id').value;

		if(chk == true) {
			if(confirm('°ø°øÀå¼Ò¿¡¼­´Â ÇØÅ· ¹æÁö¸¦ À§ÇØ IDÀúÀåÀ» »ï°¡ÇØÁÖ½Ã±â¹Ù¶ø´Ï´Ù.\nID¸¦ ÀúÀåÇÏ½Ã°Ú½À´Ï±î?')) {
				return true;
			} else {
				document.getElementById('id_save').checked = false;
				return false;
			}
		} else {
			if(chk == false) {
				setCookie(name, value, 0);
			}
		}
	}

	function setCookie(name, value, expiredays) {
		var todayDate = new Date();
		todayDate.setDate(todayDate.getDate() + expiredays);
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
	}

	function getCookie(Name) {
		var search = Name + "=";
		if(document.cookie.length > 0) {
			offset = document.cookie.indexOf(search);
			if(offset != -1) {
				offset += search.length;
				end = document.cookie.indexOf(";", offset);
				if(end == -1)
					end = document.cookie.length;
				return unescape(document.cookie.substring(offset, end));
			}
		}
	}

	function loadId() {
		if(getCookie('id')) {
			document.getElementById('mem_id').value = getCookie('id');
			document.getElementById('id_save').checked = true;
		}
	}
	// IDÀúÀåºÎºÐ ³¡
