function loadModule(url,parameters,containerId,completeFunction,errorFunction){
    if(url.length==null||url.length==0){
     errorFunction();
     return false;
    }
    var pars = parameters;
    var myAjax = new Ajax.Updater(
                {success: containerId},
                url,
                {method: 'post', parameters: pars, onComplete: completeFunction, onFailure: errorFunction,evalScripts:true});
}

function loadModuleForAsyn(url,parameters,containerId,completeFunction,errorFunction){
    if(url.length==null||url.length==0){
     errorFunction();
     return false;
    }
    var pars = parameters;
    var myAjax = new Ajax.Updater(
                {success: containerId},
                url,
                {method: 'post', parameters: pars,asynchronous:false, onComplete: completeFunction, onFailure: errorFunction,evalScripts:true});
}


function  ajaxRequest(url,parameters,completeFunction,errorFunction){
 	if(url.length==null||url.length==0){
 		errorFunction();
 		return false;
    }
    var pars = parameters;
	var myAjax=new Ajax.Request(url,
		{method:'post', parameters:pars, onSuccess:completeFunction});

}
