Type.registerNamespace('SA');
SA.LoginElement=function() {
SA.LoginElement.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SA.LoginElement.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return SA.LoginElement._staticInstance.get_path();},
Login:function(websiteId,email,password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Login',false,{websiteId:websiteId,email:email,password:password},succeededCallback,failedCallback,userContext); },
Register:function(websiteId,email,password,firstName,lastName,phone,phoneRequired,postalCode,postalCodeRequired,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Register',false,{websiteId:websiteId,email:email,password:password,firstName:firstName,lastName:lastName,phone:phone,phoneRequired:phoneRequired,postalCode:postalCode,postalCodeRequired:postalCodeRequired},succeededCallback,failedCallback,userContext); },
SendPassword:function(websiteId,email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendPassword',false,{websiteId:websiteId,email:email},succeededCallback,failedCallback,userContext); }}
SA.LoginElement.registerClass('SA.LoginElement',Sys.Net.WebServiceProxy);
SA.LoginElement._staticInstance = new SA.LoginElement();
SA.LoginElement.set_path = function(value) { SA.LoginElement._staticInstance.set_path(value); }
SA.LoginElement.get_path = function() { return SA.LoginElement._staticInstance.get_path(); }
SA.LoginElement.set_timeout = function(value) { SA.LoginElement._staticInstance.set_timeout(value); }
SA.LoginElement.get_timeout = function() { return SA.LoginElement._staticInstance.get_timeout(); }
SA.LoginElement.set_defaultUserContext = function(value) { SA.LoginElement._staticInstance.set_defaultUserContext(value); }
SA.LoginElement.get_defaultUserContext = function() { return SA.LoginElement._staticInstance.get_defaultUserContext(); }
SA.LoginElement.set_defaultSucceededCallback = function(value) { SA.LoginElement._staticInstance.set_defaultSucceededCallback(value); }
SA.LoginElement.get_defaultSucceededCallback = function() { return SA.LoginElement._staticInstance.get_defaultSucceededCallback(); }
SA.LoginElement.set_defaultFailedCallback = function(value) { SA.LoginElement._staticInstance.set_defaultFailedCallback(value); }
SA.LoginElement.get_defaultFailedCallback = function() { return SA.LoginElement._staticInstance.get_defaultFailedCallback(); }
SA.LoginElement.set_path("/shared/WebServices/LoginElement.asmx");
SA.LoginElement.Login= function(websiteId,email,password,onSuccess,onFailed,userContext) {SA.LoginElement._staticInstance.Login(websiteId,email,password,onSuccess,onFailed,userContext); }
SA.LoginElement.Register= function(websiteId,email,password,firstName,lastName,phone,phoneRequired,postalCode,postalCodeRequired,onSuccess,onFailed,userContext) {SA.LoginElement._staticInstance.Register(websiteId,email,password,firstName,lastName,phone,phoneRequired,postalCode,postalCodeRequired,onSuccess,onFailed,userContext); }
SA.LoginElement.SendPassword= function(websiteId,email,onSuccess,onFailed,userContext) {SA.LoginElement._staticInstance.SendPassword(websiteId,email,onSuccess,onFailed,userContext); }
