/** 
 * ·Î°íÀÎ °ü·Ã ½ºÅ©¸³Æ®.
 * 
 * @author 	Kim Sung Hwan
 * @version	0.1
 * @date	2004-06-14
 */

/**
 * Page¸í : index.jsp
 * ·Î°í¿Â
 * @param 
 * @return void
 */

function login()
{
	if(isError()) return;
	var oForm = document.forms[0];
	oForm.action = '/_ezaid/member/login.ez';
	oForm.target = 'hiddenFrame';
	oForm.submit();
}

/**
 * Page¸í : index.jsp
 * ¿¡·¯Ã¼Å©
 * @param 
 * @return boolean
 */

function isError()
{
	var oForm = document.forms[0];
	if ( trim(oForm.userId.value) == "" ) 
	{
		alert("¾ÆÀÌµðÀ» ÀÔ·ÂÇÏ½ÃÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.");
		oForm.userId.focus();
		return true;
	}
	if ( trim(oForm.passwd.value) == "" ) 
	{
		alert("ºñ¹Ð¹øÈ£À» ÀÔ·ÂÇÏ½ÃÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.");
		oForm.passwd.focus();
		return true;
	}
	return false;
}

function openUserRegisterForm()
{
	
	url = "/_ezaid/member/adminRegist.jsp";
	args = getPopWndCenterPosition(450, 700);
	option = "Left=" + args["left"] + ",Top=" + args["top"] + ",width=500,height=600,toolbar=0,menubar=0,resizable=no,scroll=no,history=0,status=0"
	window.open(url, "builder_popup", option);
	
	//window.open('EZRegistrationDuplicationConfirmForm.php?homepage_id=id', '', 'width=450,height=230, resizable=1, scrollbars=1');
	
}

