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, IsRootDir) {
		return this.invoke("Login", {"Email":Email, "PassWord":PassWord, "IsRootDir":IsRootDir}, this.Login.getArguments().slice(3));
	},
	Logout: function() {
		return this.invoke("Logout", {}, this.Logout.getArguments().slice(0));
	},
	CheckLogin: function(IsRootDir) {
		return this.invoke("CheckLogin", {"IsRootDir":IsRootDir}, this.CheckLogin.getArguments().slice(1));
	},
	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));
	},
	GetServerTime: function(Hours) {
		return this.invoke("GetServerTime", {"Hours":Hours}, this.GetServerTime.getArguments().slice(1));
	},
	GameAds: function(AdsName, AdsType, Game) {
		return this.invoke("GameAds", {"AdsName":AdsName, "AdsType":AdsType, "Game":Game}, this.GameAds.getArguments().slice(3));
	},
	SaveLinkID: function(ID) {
		return this.invoke("SaveLinkID", {"ID":ID}, this.SaveLinkID.getArguments().slice(1));
	},
	CheckIntroduceCharacter: function(game, server, character) {
		return this.invoke("CheckIntroduceCharacter", {"game":game, "server":server, "character":character}, this.CheckIntroduceCharacter.getArguments().slice(3));
	},
	initialize: function() {
		this.url = '/ajaxpro/game.ajax.common,WebUI.ashx';
	}
}));
game.ajax.common = new game.ajax.common_class();

