/**
 * simple ajax client class to make calls
 */
 
function AjaxClient(url){
	this.url = url;
}

/**
 * makes call
 * @param String	parameters query string
 * @return void
 */

AjaxClient.prototype.call = function(processResponseFunc){
	var myAjax = new Ajax.Request(
				 	this.url, 
					{
						method: 'get',
						onComplete: processResponseFunc,
						onFailure: this.reportError
					});
}

/**
 * reports errors
 * @return void
 */

AjaxClient.prototype.reportError = function(){
	alert('Error occurred during the call');
}
