if(typeof DecoPac == "undefined") DecoPac={};
if(typeof DecoPac.Authentication == "undefined") DecoPac.Authentication={};
DecoPac.Authentication_class = function() {};
Object.extend(DecoPac.Authentication_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	Login: function(UserName, Password) {
		return this.invoke("Login", {"UserName":UserName, "Password":Password}, this.Login.getArguments().slice(2));
	},
	Logout: function() {
		return this.invoke("Logout", {}, this.Logout.getArguments().slice(0));
	},
	ForgotPassword: function(EmailAddress) {
		return this.invoke("ForgotPassword", {"EmailAddress":EmailAddress}, this.ForgotPassword.getArguments().slice(1));
	},
	UpdatePassword: function(CurrentPassword, NewPassword) {
		return this.invoke("UpdatePassword", {"CurrentPassword":CurrentPassword, "NewPassword":NewPassword}, this.UpdatePassword.getArguments().slice(2));
	},
	IsLoggedIn: function() {
		return this.invoke("IsLoggedIn", {}, this.IsLoggedIn.getArguments().slice(0));
	},
	GetSessionID: function() {
		return this.invoke("GetSessionID", {}, this.GetSessionID.getArguments().slice(0));
	},
	HasTerms: function() {
		return this.invoke("HasTerms", {}, this.HasTerms.getArguments().slice(0));
	},
	url: '/ajaxpro/DecoPac.Authentication,DecoPacSite_deploy.ashx'
}));
DecoPac.Authentication = new DecoPac.Authentication_class();


