var globalWebService=function() {
globalWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
globalWebService.prototype={
AddToFavourites:function(controlname,email,nodeid,succeededCallback, failedCallback, userContext) {
return this._invoke(globalWebService.get_path(), 'AddToFavourites',false,{controlname:controlname,email:email,nodeid:nodeid},succeededCallback,failedCallback,userContext); },
RemoveFromFavourites:function(controlname,email,nodeid,succeededCallback, failedCallback, userContext) {
return this._invoke(globalWebService.get_path(), 'RemoveFromFavourites',false,{controlname:controlname,email:email,nodeid:nodeid},succeededCallback,failedCallback,userContext); }}
globalWebService.registerClass('globalWebService',Sys.Net.WebServiceProxy);
globalWebService._staticInstance = new globalWebService();
globalWebService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; globalWebService._staticInstance._path = value; }
globalWebService.get_path = function() { return globalWebService._staticInstance._path; }
globalWebService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
globalWebService._staticInstance._timeout = value; }
globalWebService.get_timeout = function() { 
return globalWebService._staticInstance._timeout; }
globalWebService.set_defaultUserContext = function(value) { 
globalWebService._staticInstance._userContext = value; }
globalWebService.get_defaultUserContext = function() { 
return globalWebService._staticInstance._userContext; }
globalWebService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; globalWebService._staticInstance._succeeded = value; }
globalWebService.get_defaultSucceededCallback = function() { 
return globalWebService._staticInstance._succeeded; }
globalWebService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; globalWebService._staticInstance._failed = value; }
globalWebService.get_defaultFailedCallback = function() { 
return globalWebService._staticInstance._failed; }
globalWebService.set_path("/scripts/globalWebService.asmx");
globalWebService.AddToFavourites= function(controlname,email,nodeid,onSuccess,onFailed,userContext) {globalWebService._staticInstance.AddToFavourites(controlname,email,nodeid,onSuccess,onFailed,userContext); }
globalWebService.RemoveFromFavourites= function(controlname,email,nodeid,onSuccess,onFailed,userContext) {globalWebService._staticInstance.RemoveFromFavourites(controlname,email,nodeid,onSuccess,onFailed,userContext); }
