var ScripService=function() {
ScripService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ScripService.prototype={
InsertScrip:function(AddresseeID,type,username,password,usertype,Content,succeededCallback, failedCallback, userContext) {
return this._invoke(ScripService.get_path(), 'InsertScrip',false,{AddresseeID:AddresseeID,type:type,username:username,password:password,usertype:usertype,Content:Content},succeededCallback,failedCallback,userContext); },
ReturnScrip:function(AddresseeID,type,posterID,parentID,Content,succeededCallback, failedCallback, userContext) {
return this._invoke(ScripService.get_path(), 'ReturnScrip',false,{AddresseeID:AddresseeID,type:type,posterID:posterID,parentID:parentID,Content:Content},succeededCallback,failedCallback,userContext); },
DeleteScrip:function(ScripID,succeededCallback, failedCallback, userContext) {
return this._invoke(ScripService.get_path(), 'DeleteScrip',false,{ScripID:ScripID},succeededCallback,failedCallback,userContext); },
InsertAdminScrip:function(PosterID,type,content,succeededCallback, failedCallback, userContext) {
return this._invoke(ScripService.get_path(), 'InsertAdminScrip',false,{PosterID:PosterID,type:type,content:content},succeededCallback,failedCallback,userContext); }}
ScripService.registerClass('ScripService',Sys.Net.WebServiceProxy);
ScripService._staticInstance = new ScripService();
ScripService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ScripService._staticInstance._path = value; }
ScripService.get_path = function() { return ScripService._staticInstance._path; }
ScripService.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); }
ScripService._staticInstance._timeout = value; }
ScripService.get_timeout = function() { 
return ScripService._staticInstance._timeout; }
ScripService.set_defaultUserContext = function(value) { 
ScripService._staticInstance._userContext = value; }
ScripService.get_defaultUserContext = function() { 
return ScripService._staticInstance._userContext; }
ScripService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ScripService._staticInstance._succeeded = value; }
ScripService.get_defaultSucceededCallback = function() { 
return ScripService._staticInstance._succeeded; }
ScripService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ScripService._staticInstance._failed = value; }
ScripService.get_defaultFailedCallback = function() { 
return ScripService._staticInstance._failed; }
ScripService.set_path("/ScripService.asmx");
ScripService.InsertScrip= function(AddresseeID,type,username,password,usertype,Content,onSuccess,onFailed,userContext) {ScripService._staticInstance.InsertScrip(AddresseeID,type,username,password,usertype,Content,onSuccess,onFailed,userContext); }
ScripService.ReturnScrip= function(AddresseeID,type,posterID,parentID,Content,onSuccess,onFailed,userContext) {ScripService._staticInstance.ReturnScrip(AddresseeID,type,posterID,parentID,Content,onSuccess,onFailed,userContext); }
ScripService.DeleteScrip= function(ScripID,onSuccess,onFailed,userContext) {ScripService._staticInstance.DeleteScrip(ScripID,onSuccess,onFailed,userContext); }
ScripService.InsertAdminScrip= function(PosterID,type,content,onSuccess,onFailed,userContext) {ScripService._staticInstance.InsertAdminScrip(PosterID,type,content,onSuccess,onFailed,userContext); }
