// Client stub for the mbcHaa PHP Class
function mbcHaa(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'mbcHaa';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/auto_server.php?','JSON');
}
mbcHaa.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	add_cart: function() { return this.dispatcher.doCall('add_cart',arguments); },
	remove_cart: function() { return this.dispatcher.doCall('remove_cart',arguments); },
	update_cart: function() { return this.dispatcher.doCall('update_cart',arguments); },
	change_adresse: function() { return this.dispatcher.doCall('change_adresse',arguments); },
	modifier_livraison: function() { return this.dispatcher.doCall('modifier_livraison',arguments); },
	save: function() { return this.dispatcher.doCall('save',arguments); },
	update: function() { return this.dispatcher.doCall('update',arguments); },
	save_vente: function() { return this.dispatcher.doCall('save_vente',arguments); },
	code_promo: function() { return this.dispatcher.doCall('code_promo',arguments); },
	coupon_reduc: function() { return this.dispatcher.doCall('coupon_reduc',arguments); },
	creer_coupon: function() { return this.dispatcher.doCall('creer_coupon',arguments); },
	verif_maximiler: function() { return this.dispatcher.doCall('verif_maximiler',arguments); }
}

