addNamespace("Unnor.Ajax");
Unnor.Ajax.Common_class = Class.create();
Object.extend(Unnor.Ajax.Common_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	Login: function(username, password) {
		return this.invoke("Login", {"username":username, "password":password}, this.Login.getArguments().slice(2));
	},
	Logout: function() {
		return this.invoke("Logout", {}, this.Logout.getArguments().slice(0));
	},
	CheckLogin: function() {
		return this.invoke("CheckLogin", {}, this.CheckLogin.getArguments().slice(0));
	},
	RegCheckUserName: function(username) {
		return this.invoke("RegCheckUserName", {"username":username}, this.RegCheckUserName.getArguments().slice(1));
	},
	Register: function(userName, password, email, phone, country, gender, nickName, bornDay, msn, zip, address) {
		return this.invoke("Register", {"userName":userName, "password":password, "email":email, "phone":phone, "country":country, "gender":gender, "nickName":nickName, "bornDay":bornDay, "msn":msn, "zip":zip, "address":address}, this.Register.getArguments().slice(11));
	},
	GetCurrencyList: function() {
		return this.invoke("GetCurrencyList", {}, this.GetCurrencyList.getArguments().slice(0));
	},
	GetGameList: function() {
		return this.invoke("GetGameList", {}, this.GetGameList.getArguments().slice(0));
	},
	GetServerList: function(gameID, serverIndex, currency) {
		return this.invoke("GetServerList", {"gameID":gameID, "serverIndex":serverIndex, "currency":currency}, this.GetServerList.getArguments().slice(3));
	},
	GetProductList: function(gameID, serverID, currencyID, discount) {
		return this.invoke("GetProductList", {"gameID":gameID, "serverID":serverID, "currencyID":currencyID, "discount":discount}, this.GetProductList.getArguments().slice(4));
	},
	GetBuyProductList: function(gameID, serverID, currencyID) {
		return this.invoke("GetBuyProductList", {"gameID":gameID, "serverID":serverID, "currencyID":currencyID}, this.GetBuyProductList.getArguments().slice(3));
	},
	ApplyCode: function(code) {
		return this.invoke("ApplyCode", {"code":code}, this.ApplyCode.getArguments().slice(1));
	},
	SaveForm: function(currency, game, server, product, price, characterName, email, fullName, phone, country, code) {
		return this.invoke("SaveForm", {"currency":currency, "game":game, "server":server, "product":product, "price":price, "characterName":characterName, "email":email, "fullName":fullName, "phone":phone, "country":country, "code":code}, this.SaveForm.getArguments().slice(11));
	},
	initialize: function() {
		this.url = '/ajaxpro/Unnor.Ajax.Common,Ajax.ashx';
	}
}));
Unnor.Ajax.Common = new Unnor.Ajax.Common_class();

