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

