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 swfView(WW,HH,SRC) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8.0.0.0' width='"+WW+"' height='"+HH+"'>");
	document.write("	<param name='movie' value='"+SRC+"' />");
    document.write("	<param name='allowScriptAccess' value='always' /> ");
	document.write("	<param name='quality' value='high' />");
	document.write("	<param name='wmode' value='transparent' />");
	document.write("	<embed src='"+SRC+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' width='"+WW+"' height='"+HH+"' />");
	document.write("</object>");
}


	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 nameOfCookie = name + "=";
		var x = 0;
		while ( x <= document.cookie.length )
		{
			var y = (x+nameOfCookie.length);
			if ( document.cookie.substring( x, y ) == nameOfCookie ) {
				if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
					endOfCookie = document.cookie.length;
				return unescape( document.cookie.substring( y, endOfCookie ) );
			}
			x = document.cookie.indexOf( " ", x ) + 1;
			if ( x == 0 )
				break;
		}
		return "";
	}

    // a ÅÂ±×¿¡¼­ onclick ÀÌº¥Æ®¸¦ »ç¿ëÇÏÁö ¾Ê±â À§ÇØ
    function win_open(url, name, option)
    {
        var popup = window.open(url, name, option);
        popup.focus();
    }


	function find_passwd() {
	  var wndNew = window.open("http://www.mnshome.com/board/lost_id_pass.html", "find_passwd", "width=450, height=255, toolbar=no, location=no");

	  if (wndNew)
		wndNew.focus();
	}


	// ¹Ì¾Ø»ç Á¤Ç°ÀÎÁõ ¹è³Ê ÆË¾÷
	function open_mns() {
	  win_open('http://www.mnshome.com/pop_mns_banner.html','¹Ìµð¾Ø»ç¿îµå_Á¤Ç°ÀÎÁõ¾È³»','width=370, height=420, toolbar=no, location=no');
	}

	function getToday() {
		now = new Date()
		yy = now.getYear();
		mm = now.getMonth()+1;
		dd = now.getDate();

		if (mm < 10) mm = "0"+mm;
		if (dd < 10) dd = "0"+dd;

		today = yy.toString() +"-"+ mm.toString() +"-"+ dd.toString();		
		return today;
	}

	today = getToday();
/*
function click() {
 if((event.button==2) || (event.button==3)) {
	 alert("¿À¸¥ÂÊ ¹öÆ°Àº »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù");
  return false;
 }
}
function keypressed() {
 var key=event.keyCode;
 if(key==18) { 
	 alert('AltÅ°´Â »ç¿ë ºÒ°¡´ÉÇÕ´Ï´Ù.'); 
return false; 
}
}
document.onmousedown=click;
document.onkeydown=keypressed; */