addNamespace("AjaxMethod");
AjaxMethod_class = Class.create();
AjaxMethod_class.prototype = (new AjaxPro.Request()).extend({
	GetCode: function(code, callback) {
		return this.invoke("GetCode", {"code":code}, callback);
	},
	GetUserName: function(type, uname, callback) {
		return this.invoke("GetUserName", {"type":type, "uname":uname}, callback);
	},
	GetUserEnable: function(type, uname, callback) {
		return this.invoke("GetUserEnable", {"type":type, "uname":uname}, callback);
	},
	GetUserPwd: function(type, uname, pwd, callback) {
		return this.invoke("GetUserPwd", {"type":type, "uname":uname, "pwd":pwd}, callback);
	},
	checkEditContent: function(topicContent, callback) {
		return this.invoke("checkEditContent", {"topicContent":topicContent}, callback);
	},
	ContentNoHtml: function(topicContent, callback) {
		return this.invoke("ContentNoHtml", {"topicContent":topicContent}, callback);
	},
	getCategoryList: function(userID, callback) {
		return this.invoke("getCategoryList", {"userID":userID}, callback);
	},
	isArticleCategoryExist: function(userID, categoryName, callback) {
		return this.invoke("isArticleCategoryExist", {"userID":userID, "categoryName":categoryName}, callback);
	},
	AddArticleCategory: function(userID, categoryName, callback) {
		return this.invoke("AddArticleCategory", {"userID":userID, "categoryName":categoryName}, callback);
	},
	addAlbumCategory: function(userID, albumName, visitRank, callback) {
		return this.invoke("addAlbumCategory", {"userID":userID, "albumName":albumName, "visitRank":visitRank}, callback);
	},
	IsAlbumExist: function(userID, albumName, callback) {
		return this.invoke("IsAlbumExist", {"userID":userID, "albumName":albumName}, callback);
	},
	getAlbumCategory: function(userID, callback) {
		return this.invoke("getAlbumCategory", {"userID":userID}, callback);
	},
	initialize: function() {
		this.url = "/ajaxpro/AjaxMethod,App_Code.ashx";
	}
})
AjaxMethod = new AjaxMethod_class();

