         
var AjaxUpdaterObject = Class.create();
AjaxUpdaterObject.prototype = {
  initialize: function (sElementId,sUrl,sPostVars,sMethod){
    this.callBackElement = $(sElementId);
  	this.ajaxUpdaterObject = new Ajax.Updater(
 				sElementId,		// Element ID that receives the response text
    		sUrl,				// URL to send data to with parameters
    		{	
    			method:sMethod,
					postBody:sPostVars
    		}		
    )}
};

var AjaxService = Class.create();
AjaxService.prototype = {
  initialize: function (function_call, elementID,sPostVars){
  	new Ajax.Updater(
 				elementID,		// Element ID that receives the response text
    		function_call,				// URL to send data to with parameters
    		{	
    			method:'post',
					postBody:'&ajaxaction='+sPostVars
    		}		
    )}
};
