function loginChk()
{
	var frmLogin = document.frmLogin;

	if (!frmLogin.comCode.value)
	{
		alert("¾÷Ã¼ÄÚµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		frmLogin.comCode.focus();
		return;
	}
	if (!frmLogin.usrID.value)
	{
		alert("»ç¿ëÀÚ ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		frmLogin.usrID.focus();
		return;
	}
	if (!frmLogin.usrPWD.value)
	{
		alert("»ç¿ëÀÚ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		frmLogin.usrPWD.focus();
		return;
	}

	frmLogin.submit();
}

/*-------------------------------------------------------------------------------
 ÇÔ¼ö¸í : fnOpenExperience()
 ¼³  ¸í : Ã¼ÇèÇÏ±â ¿ÀÇÂ
 ÀÎ  ÀÚ : void
 ¸®  ÅÏ : void
 ÀÛ¼ºÀÏ : 2006-10-26
 ÀÛ¼ºÀÚ : ÀÌÁ¤¿­
 ºñ  °í : Ã¢¶ç¿ì°í ºÎ¸ðÃ¢¿¡¼­ ÀÚ½ÄÃ¢ ¿ÀÇÂ ¹æ½Ä¿¡¼­ ´ÙÀÌ·ºÆ® ¿ÀÇÂ ¹æ½ÄÀ¸·Î º´°æ
-------------------------------------------------------------------------------*/
function fnOpenExperience(pageNum){
	if (pageNum !='' ){
		if (pageNum == 14){
			theURL = "/erp_app/erpia_jiwon_site.asp";
		} else {
			theURL = "/flash/erpia_demo_"+pageNum+"_1.html";
		}
		window.open(theURL, '', 'scrollbars=auto, width=1050, height=750');
	}
}

function fnOpenExperience2(pageName)
{
	if (pageName !='')
	{
		//theURL = "/flash/erpia_demo_"+pageName+".html";
		theURL = "/menual/guide.asp?kind="+pageName;
		window.open(theURL, '', 'fullscreen');
	}
}

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 setCookie( name, value, expiredays )   {
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
