/**
 * @requires prototype.js, Popup.js, StringUtil.js
 */
var LoginUtil = {
	runAuth: function(form) {
		if(StringUtil.hasNothing(form.userid) || StringUtil.hasNothing(form.userpwd)) {
			return false;
		}else if(StringUtil.getExactByteCount(form.userid, true) > 32){
			alert("입력된 아이디의 길이가 32byte가 넘습니다. 줄여주십시요.");
			return false;
		}else if(form.security.checked) {
			return true;
		}else {
			form.action = "https://www.egloos.com/login/sauthid.php";
			return true;
		}
	},
	
	findPassword: function() {
		Popup.openWindow('https://www.egloos.com/info/findpwd_view.php', 'chkpwd', 400, 400, false, false, false, false);
	}	
}
