function onLogin(){
	var params = Form.serialize($(loginform));
	emBox.alertBox('로그인 하는 중입니다.',{width:'350', height:'110'});
	new Ajax.Request('./loginAction.phtml', {
		asynchronous: true,
		method: "post",
		parameters:params,
		onSuccess: function(request){
			if (request.responseText==true) {
				window.location='list.phtml';
			}
			else {
				var response = request.responseText.split("|");
				if (response[0]==1) {
					window.location.href=response[1];
				}
				else {
					emBox.boxClose();
					emBox.alertBox(request.responseText, {action:'emBox.boxClose()', width:'350', height:'110'});
				}
			}
		},
		onFailure: function(request){
			alert(request.responseText);
		}
	});
}
