var Auth = {
	FormName: null,
	Path: null,
	setPath: function(Path){
		this.Path = Path;
	},
	exec: function(frmName){
		this.FormName = frmName;
		var AReq = new Ajax.Request(
			this.Path,
			{
				method: 'post',
				parameters: Form.serialize(this.FormName),
				onComplete: onCompleteAuth
			}
		);
    	return false;
	}
};
function onCompleteAuth(reqObj)
{
	resdata = reqObj.responseText;

	resdata = resdata.replace(/^\s+|\s+$/g, "");
	
	if(resdata == 'login_error'){
		alert("IDもしくはパスワードが違います。\n");
	}else{
		$('frmLogin').submit();
	}
}
