// Client stub for the Users PHP Class
function Users(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'Users';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/core/javascript/auto_server.php?','JSON');
}
Users.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	handleUser: function() { return this.dispatcher.doCall('handleUser',arguments); },
	edit: function() { return this.dispatcher.doCall('edit',arguments); },
	save: function() { return this.dispatcher.doCall('save',arguments); },
	sendActivationMail: function() { return this.dispatcher.doCall('sendActivationMail',arguments); },
	handleActivate: function() { return this.dispatcher.doCall('handleActivate',arguments); },
	handlePaypal: function() { return this.dispatcher.doCall('handlePaypal',arguments); }
}

// Client stub for the Exercise PHP Class
function Exercise(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'Exercise';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/core/javascript/auto_server.php?','JSON');
}
Exercise.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	getHtml: function() { return this.dispatcher.doCall('getHtml',arguments); },
	checkAnswer: function() { return this.dispatcher.doCall('checkAnswer',arguments); },
	getExercise: function() { return this.dispatcher.doCall('getExercise',arguments); },
	getDictionary: function() { return this.dispatcher.doCall('getDictionary',arguments); },
	getStatistics: function() { return this.dispatcher.doCall('getStatistics',arguments); },
	getNeighborExercise: function() { return this.dispatcher.doCall('getNeighborExercise',arguments); },
	ajaxGetExercise: function() { return this.dispatcher.doCall('ajaxGetExercise',arguments); },
	ajaxGetSolution: function() { return this.dispatcher.doCall('ajaxGetSolution',arguments); },
	ajaxChkAnswer: function() { return this.dispatcher.doCall('ajaxChkAnswer',arguments); },
	ajaxGetSubscriptions: function() { return this.dispatcher.doCall('ajaxGetSubscriptions',arguments); },
	ajaxDelSubscription: function() { return this.dispatcher.doCall('ajaxDelSubscription',arguments); },
	ajaxCDCheckLetter: function() { return this.dispatcher.doCall('ajaxCDCheckLetter',arguments); },
	ajaxGetCDSolution: function() { return this.dispatcher.doCall('ajaxGetCDSolution',arguments); },
	getHelp: function() { return this.dispatcher.doCall('getHelp',arguments); },
	getRTF: function() { return this.dispatcher.doCall('getRTF',arguments); },
	ajaxGetHelp: function() { return this.dispatcher.doCall('ajaxGetHelp',arguments); },
	ajaxSetExamMode: function() { return this.dispatcher.doCall('ajaxSetExamMode',arguments); },
	ajaxGetExamStats: function() { return this.dispatcher.doCall('ajaxGetExamStats',arguments); },
	ajaxSaveComposition: function() { return this.dispatcher.doCall('ajaxSaveComposition',arguments); }
}

// Client stub for the Dictionary PHP Class
function Dictionary(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'Dictionary';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/core/javascript/auto_server.php?','JSON');
}
Dictionary.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	getWords: function() { return this.dispatcher.doCall('getWords',arguments); },
	ajaxGetWords: function() { return this.dispatcher.doCall('ajaxGetWords',arguments); },
	getWordDetails: function() { return this.dispatcher.doCall('getWordDetails',arguments); },
	ajaxGetWordDetails: function() { return this.dispatcher.doCall('ajaxGetWordDetails',arguments); }
}

// Client stub for the Subscriptions PHP Class
function Subscriptions(callback) {
	mode = 'sync';
	if (callback) { mode = 'async'; }
	this.className = 'Subscriptions';
	this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/core/javascript/auto_server.php?','JSON');
}
Subscriptions.prototype  = {
	Sync: function() { this.dispatcher.Sync(); }, 
	Async: function(callback) { this.dispatcher.Async(callback); },
	getHtml: function() { return this.dispatcher.doCall('getHtml',arguments); },
	ajaxGetHtml: function() { return this.dispatcher.doCall('ajaxGetHtml',arguments); },
	getList: function() { return this.dispatcher.doCall('getList',arguments); },
	delSubscription: function() { return this.dispatcher.doCall('delSubscription',arguments); },
	getPayables: function() { return this.dispatcher.doCall('getPayables',arguments); }
}

