/*********************************************
*   DESC : 로그인처리 Functions
*   DATE : 2006-02-28
*   BY   : HJLee
**********************************************/
/**
* login
*/
function login(id,passwd) {
	if( id.value == '' ) {
		alert(check_input_id)
		id.focus();
		return
	}
	if( passwd.value == '' ) {
		alert(check_input_passwd)
		passwd.focus();
		return
	}
	id.value = id.value.trim();
	Logon(frmLogin);
	//document.frmLogin.submit();
}

/**
* 엔터 -> 로그인처리
*/
function keyEnter(id,passwd,event) {
	var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
	//navigator.appName == "Microsoft Internet Explorer" 
	if (keyCode == 13) {
		login(id,passwd);
	}
}

/**
* 언어선택시 다시 로그인페이지 refresh
*/
function refreshWithLocale(oSelect) {
	window.location.href = window.location.pathname + "?"+oSelect.name+"="+oSelect.value;
}

/**
* 동명이인 팝업선택
*/
function openDupSelectPop(name,locale) {
	alert(alert_dup_users);
	var urlStr	  = _webapp + "/GWController?nextpage=/acl/logon/userDupPop.jsp&name="+encodeURI(name)+"&locale="+locale
	var title	  = "user.dup.title";
	var param     = this
	var rtnVal	  = getOpenModalPopup(title, urlStr, param, 660, 400, "auto");
	//openPopupWindowInCenter(urlStr, 'winName', 600 , 400, false)
}