function Login(B,A){this._base=B;this._forum=A;}Login.prototype.showLoginForm=function(){this._forum.loading("LOADING LOGIN FORM");var B=this;var A=function(C){B._forum.showHTML(C,400,200);B._forum.stopLoading();};new BxXslTransform(this._base+"?action=login_form",urlXsl+"login_form.xsl",A);return false;};Login.prototype.showJoinForm=function(){this._forum.loading("LOADING JOIN FORM");var B=this;var A=function(C){B._forum.showHTML(C,400,200);B._forum.stopLoading();};new BxXslTransform(this._base+"?action=join_form",urlXsl+"join_form.xsl",A);return false;};Login.prototype.joinFormSubmit=function(username,email){var $this=this;var h=function(r){var o=new BxXmlRequest("","","");var ret=o.getRetNodeValue(r,"js");if(!ret||!ret.length){alert("Thank you! You Joined! Your login and password have been sent to your email.");$this._forum.hideHTML();return false;}alert("Join failed");eval(ret);return false;};new BxXmlRequest(this._base+"?action=join_submit&username="+username+"&email="+email,h,true);return false;};Login.prototype.loginFormSubmit=function(username,pwd){var $this=this;var h=function(r){var o=new BxXmlRequest("","","");var ret=o.getRetNodeValue(r,"js");if(!ret||!ret.length){document.location=$this._base+"?refresh=1";return false;}alert("Login failed");eval(ret);return false;};new BxXmlRequest(this._base+"?action=login_submit&username="+username+"&pwd="+pwd,h,true);return false;};Login.prototype.logout=function(){$this=this;var A=function(B){document.location=$this._base+"?refresh=1";return false;};new BxXmlRequest(this._base+"?action=logout",A,true);return false;document.cookie="orca_pwd=; orca_user=; expires=Fri, 02-Jan-1970 00:00:00 GMT";document.location=this._base+"?refresh=1";return false;};
