// Client stub for the cajax PHP Class
function cajax(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'cajax';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/alib_ajax_server.php?','JSON');
}
cajax.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	call: function() { return this.dispatcher.doCall('call',arguments); },
	check: function() { return this.dispatcher.doCall('check',arguments); },
	check_all: function() { return this.dispatcher.doCall('check_all',arguments); }
}

