if(typeof SnsMsgr == "undefined") SnsMsgr={};
if(typeof SnsMsgr.Components == "undefined") SnsMsgr.Components={};
if(typeof SnsMsgr.Components.Company == "undefined") SnsMsgr.Components.Company={};
SnsMsgr.Components.Company_class = function() {};
Object.extend(SnsMsgr.Components.Company_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	GetPassword: function(name) {
		return this.invoke("GetPassword", {"name":name}, this.GetPassword.getArguments().slice(1));
	},
	NameIsOnce: function(newName) {
		return this.invoke("NameIsOnce", {"newName":newName}, this.NameIsOnce.getArguments().slice(1));
	},
	Register: function(userName, passWord, email, manageName, agent) {
		return this.invoke("Register", {"userName":userName, "passWord":passWord, "email":email, "manageName":manageName, "agent":agent}, this.Register.getArguments().slice(5));
	},
	ChangePassWord: function(oPassword, nPassword) {
		return this.invoke("ChangePassWord", {"oPassword":oPassword, "nPassword":nPassword}, this.ChangePassWord.getArguments().slice(2));
	},
	SaveInfo: function(comname, contact, email, phone, brief, welcome, brieflink, Com_Address, logoImg) {
		return this.invoke("SaveInfo", {"comname":comname, "contact":contact, "email":email, "phone":phone, "brief":brief, "welcome":welcome, "brieflink":brieflink, "Com_Address":Com_Address, "logoImg":logoImg}, this.SaveInfo.getArguments().slice(9));
	},
	GetInfo: function() {
		return this.invoke("GetInfo", {}, this.GetInfo.getArguments().slice(0));
	},
	SetManage: function(element) {
		return this.invoke("SetManage", {"element":element}, this.SetManage.getArguments().slice(1));
	},
	AddDept: function(name, parID) {
		return this.invoke("AddDept", {"name":name, "parID":parID}, this.AddDept.getArguments().slice(2));
	},
	ModifyDept: function(id, newName) {
		return this.invoke("ModifyDept", {"id":id, "newName":newName}, this.ModifyDept.getArguments().slice(2));
	},
	RemoveDept: function(id) {
		return this.invoke("RemoveDept", {"id":id}, this.RemoveDept.getArguments().slice(1));
	},
	AddElement: function(username, realname, pwd, parID) {
		return this.invoke("AddElement", {"username":username, "realname":realname, "pwd":pwd, "parID":parID}, this.AddElement.getArguments().slice(4));
	},
	ReomveElement: function(id) {
		return this.invoke("ReomveElement", {"id":id}, this.ReomveElement.getArguments().slice(1));
	},
	ChangeNodeParent: function(id, newParID, isDept) {
		return this.invoke("ChangeNodeParent", {"id":id, "newParID":newParID, "isDept":isDept}, this.ChangeNodeParent.getArguments().slice(3));
	},
	ElementNameIsOnce: function(name) {
		return this.invoke("ElementNameIsOnce", {"name":name}, this.ElementNameIsOnce.getArguments().slice(1));
	},
	ApproveApplay: function(ids, applay) {
		return this.invoke("ApproveApplay", {"ids":ids, "applay":applay}, this.ApproveApplay.getArguments().slice(2));
	},
	MessagePageCount: function(month, userid) {
		return this.invoke("MessagePageCount", {"month":month, "userid":userid}, this.MessagePageCount.getArguments().slice(2));
	},
	MessageTableHtml: function(tableid, month, pageid, userid) {
		return this.invoke("MessageTableHtml", {"tableid":tableid, "month":month, "pageid":pageid, "userid":userid}, this.MessageTableHtml.getArguments().slice(4));
	},
	PageInfo: function(bindPage) {
		return this.invoke("PageInfo", {"bindPage":bindPage}, this.PageInfo.getArguments().slice(1));
	},
	AddPage: function(infos) {
		return this.invoke("AddPage", {"infos":infos}, this.AddPage.getArguments().slice(1));
	},
	ModifyPage: function(bindPage, infos) {
		return this.invoke("ModifyPage", {"bindPage":bindPage, "infos":infos}, this.ModifyPage.getArguments().slice(2));
	},
	RemovePage: function(bindPage) {
		return this.invoke("RemovePage", {"bindPage":bindPage}, this.RemovePage.getArguments().slice(1));
	},
	PageInfoTable: function(bindPage, width, backcolor) {
		return this.invoke("PageInfoTable", {"bindPage":bindPage, "width":width, "backcolor":backcolor}, this.PageInfoTable.getArguments().slice(3));
	},
	url: '/ajaxpro/SnsMsgr.Components.Company,SnsMsgrWeb.Components.ashx'
}));
SnsMsgr.Components.Company = new SnsMsgr.Components.Company_class();

