function check_login(theform)
{
   if (frm.loginID.value == "") 
   {
      alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
      frm.loginID.focus();
      return false;
   }

   if (frm.loginPwd.value == "") 
   {
      //alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
      frm.loginPwd.focus();
      return false;
   }

}

function loginmsg()
{
	alert('ÁË¼ÛÇÕ´Ï´Ù.\n\n·Î±×ÀÎ ÈÄ ÀÌ¿ë°¡´ÉÇÑ ¼­ºñ½ºÀÔ´Ï´Ù.');
}

function getNavigator() 
{

	an = navigator.appName;
	

	if (an.charAt(0) == 'M')
		return "IE";
	else if (an.charAt(0) == 'N')
		return "NC";
	else
		return "ETC";
}

function getNavigatorVer() 
{

	av = navigator.appVersion;
	an = getNavigator();

	if (an == "IE") {

		idx1 = av.indexOf("MSIE");
		sub1 = av.substr(idx1);

		idx2 = sub1.indexOf(";");
		sub2 = sub1.substr(4, idx2 - 4);

		return sub2;

	} else if (an == "NC") {

		idx1 = av.indexOf("(");
		sub1 = av.substr(0, idx1);

		return sub1;

	} else {

		return 0;
	}
}

function init_document () 
{

	if (getNavigator() == "NC" || getNavigatorVer() < 5.5) {

		alert("ÀÌ ¼­ºñ½º´Â Microsoft Internet Explorer 5.5 ÀÌ»óÀ» ±ÇÀåÇÕ´Ï´Ù!");
	}

	frm.loginID.focus();

}

function setCookie(name, value)
{
	var todayDate = new Date();

	todayDate.setDate( todayDate.getDate()+30);
	document.cookie = name + "=" + escape( value ) + "; path=/; expires="+ todayDate.toGMTString() +";";
}

function removeCookie(name)
{
	var todayDate = new Date();

	todayDate.setDate( todayDate.getDate()-1 );
	document.cookie = name + "=; 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 "";
}

//°øÁö»çÇ× »õÃ¢
function notice_view(board_idx)
{
   open("./notice_view.asp?board_idx="+board_idx, "search1" , "width=420, height=380,left=400,top=0, scrollbars=yes");
}
