pages_load=function(requestMeth, updateArea, control, params, history,warnDiv, callOnComplete){
   if(warnDiv==null) warnDiv=updateArea;
   new Ajax.Updater({success:updateArea}, control,

	{   method:requestMeth,
		parameters:params,
		evalScripts:true,
		onSuccess:function(){
			Gatex.hideLoading();
		},
		onComplete:function(rn){
			Gatex.hideLoading();

			if(document.getElementById(updateArea+"CallControl")!=null) document.getElementById(updateArea+"CallControl").innerHTML=control;
			if(document.getElementById(updateArea+"CallParams")!=null) document.getElementById(updateArea+"CallParams").innerHTML=params;

			if(callOnComplete!=null || callOnComplete!='') eval(callOnComplete);


			if(history){

				var historyObject=new Object();
				HistoryTargetCollection.setHistoryObject(historyObject);

				new_hash=Math.random();
				dhtmlHistory.add(new_hash, historyObject);
			}

		},
		on500:function(rn){
			Gatex.hideLoading();
			document.getElementById(updateArea).innerHTML=rn.responseText;
		},
		on10005:function(rn){
			Gatex.hideLoading();
			document.getElementById(warnDiv).innerHTML=rn.responseText;
		},
		onLoading:function(){
			Gatex.showLoading();
		}
	});
}