// Client stub for the Action PHP Class
function Action(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'Action';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/examples/Chapter09/html_ajax/actionServer.php?','JSON');
}
Action.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	changeColor: function() { return this.dispatcher.doCall('changeColor',arguments); },
	alert: function() { return this.dispatcher.doCall('alert',arguments); }
}

