Type.registerNamespace('JB.Website');
JB.Website.AutoComplete=function() {
JB.Website.AutoComplete.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
JB.Website.AutoComplete.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return JB.Website.AutoComplete._staticInstance.get_path();},
GetLocation:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocation',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetBusinessLocation:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetBusinessLocation',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetEmailLocation:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetEmailLocation',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
CreateBusiness:function(Name,businessId,address1,address2,cityName,StateAbbr,phone,zipCode,lat,lng,category,AddIfNotFound,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateBusiness',false,{Name:Name,businessId:businessId,address1:address1,address2:address2,cityName:cityName,StateAbbr:StateAbbr,phone:phone,zipCode:zipCode,lat:lat,lng:lng,category:category,AddIfNotFound:AddIfNotFound},succeededCallback,failedCallback,userContext); }}
JB.Website.AutoComplete.registerClass('JB.Website.AutoComplete',Sys.Net.WebServiceProxy);
JB.Website.AutoComplete._staticInstance = new JB.Website.AutoComplete();
JB.Website.AutoComplete.set_path = function(value) { JB.Website.AutoComplete._staticInstance.set_path(value); }
JB.Website.AutoComplete.get_path = function() { return JB.Website.AutoComplete._staticInstance.get_path(); }
JB.Website.AutoComplete.set_timeout = function(value) { JB.Website.AutoComplete._staticInstance.set_timeout(value); }
JB.Website.AutoComplete.get_timeout = function() { return JB.Website.AutoComplete._staticInstance.get_timeout(); }
JB.Website.AutoComplete.set_defaultUserContext = function(value) { JB.Website.AutoComplete._staticInstance.set_defaultUserContext(value); }
JB.Website.AutoComplete.get_defaultUserContext = function() { return JB.Website.AutoComplete._staticInstance.get_defaultUserContext(); }
JB.Website.AutoComplete.set_defaultSucceededCallback = function(value) { JB.Website.AutoComplete._staticInstance.set_defaultSucceededCallback(value); }
JB.Website.AutoComplete.get_defaultSucceededCallback = function() { return JB.Website.AutoComplete._staticInstance.get_defaultSucceededCallback(); }
JB.Website.AutoComplete.set_defaultFailedCallback = function(value) { JB.Website.AutoComplete._staticInstance.set_defaultFailedCallback(value); }
JB.Website.AutoComplete.get_defaultFailedCallback = function() { return JB.Website.AutoComplete._staticInstance.get_defaultFailedCallback(); }
JB.Website.AutoComplete.set_path("/Web%20Service/AutoComplete.asmx");
JB.Website.AutoComplete.GetLocation= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {JB.Website.AutoComplete._staticInstance.GetLocation(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
JB.Website.AutoComplete.GetBusinessLocation= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {JB.Website.AutoComplete._staticInstance.GetBusinessLocation(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
JB.Website.AutoComplete.GetEmailLocation= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {JB.Website.AutoComplete._staticInstance.GetEmailLocation(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
JB.Website.AutoComplete.CreateBusiness= function(Name,businessId,address1,address2,cityName,StateAbbr,phone,zipCode,lat,lng,category,AddIfNotFound,onSuccess,onFailed,userContext) {JB.Website.AutoComplete._staticInstance.CreateBusiness(Name,businessId,address1,address2,cityName,StateAbbr,phone,zipCode,lat,lng,category,AddIfNotFound,onSuccess,onFailed,userContext); }
