addNamespace("game.ajax");
game.ajax.common_class = Class.create();
Object.extend(game.ajax.common_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {
	Login: function(Email, PassWord) {
		return this.invoke("Login", {"Email":Email, "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));
	},
	Validate: function(idx_tbCustomer) {
		return this.invoke("Validate", {"idx_tbCustomer":idx_tbCustomer}, this.Validate.getArguments().slice(1));
	},
	SetCurrency: function(MoneyCode) {
		return this.invoke("SetCurrency", {"MoneyCode":MoneyCode}, this.SetCurrency.getArguments().slice(1));
	},
	GetCurrency: function() {
		return this.invoke("GetCurrency", {}, this.GetCurrency.getArguments().slice(0));
	},
	GetSerialNo: function(len) {
		return this.invoke("GetSerialNo", {"len":len}, this.GetSerialNo.getArguments().slice(1));
	},
	SaveAff: function(Aff) {
		return this.invoke("SaveAff", {"Aff":Aff}, this.SaveAff.getArguments().slice(1));
	},
	GameAds: function(AdsName, AdsType, Game) {
		return this.invoke("GameAds", {"AdsName":AdsName, "AdsType":AdsType, "Game":Game}, this.GameAds.getArguments().slice(3));
	},
	initialize: function() {
		this.url = '/ajaxpro/game.ajax.common,WebUI.ashx';
	}
}));
game.ajax.common = new game.ajax.common_class();

