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/server.php?gzip=true','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); }
}

