// Client stub for the test PHP Class
function test(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'test';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/projects/HTML_AJAX/examples/auto_server.php?','JSON');
}
test.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	echo_string: function() { return this.dispatcher.doCall('echo_string',arguments); },
	echo_strings: function() { return this.dispatcher.doCall('echo_strings',arguments); },
	slow_echo_string: function() { return this.dispatcher.doCall('slow_echo_string',arguments); },
	error_test: function() { return this.dispatcher.doCall('error_test',arguments); },
	multiarg: function() { return this.dispatcher.doCall('multiarg',arguments); },
	cookies: function() { return this.dispatcher.doCall('cookies',arguments); },
	echo_data: function() { return this.dispatcher.doCall('echo_data',arguments); },
	dump: function() { return this.dispatcher.doCall('dump',arguments); },
	unicode_data: function() { return this.dispatcher.doCall('unicode_data',arguments); },
	test1: function() { return this.dispatcher.doCall('test1',arguments); },
	test2: function() { return this.dispatcher.doCall('test2',arguments); },
	test3: function() { return this.dispatcher.doCall('test3',arguments); }
}

// Client stub for the livesearch PHP Class
function livesearch(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'livesearch';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/projects/HTML_AJAX/examples/auto_server.php?','JSON');
}
livesearch.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	search: function() { return this.dispatcher.doCall('search',arguments); }
}

// Client stub for the testHaa PHP Class
function testHaa(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'testHaa';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/projects/HTML_AJAX/examples/auto_server.php?','JSON');
}
testHaa.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	updateClassName: function() { return this.dispatcher.doCall('updateClassName',arguments); },
	greenText: function() { return this.dispatcher.doCall('greenText',arguments); },
	highlight: function() { return this.dispatcher.doCall('highlight',arguments); },
	duplicate: function() { return this.dispatcher.doCall('duplicate',arguments); }
}

// Client stub for the test2 PHP Class
function test2(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'test2';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/projects/HTML_AJAX/examples/auto_server.php?','JSON');
}
test2.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	test: function() { return this.dispatcher.doCall('test',arguments); }
}

