function doRequest(id,url,params,actionMethod){
	var showResults = function(req){showReqResults(req, id);}
	if (actionMethod==null) actionMethod = "post";
	if (actionMethod=='get'){
			url = url+params;
 			var req = new Ajax.Request(sitecore_path+url,{method: actionMethod,onCreate:show_process_indicator(id),onComplete:showResults});
	}else var req = new Ajax.Request(sitecore_path+url,{method: actionMethod,parameters: params,onCreate:show_process_indicator(id),onComplete:showResults});
}

function show_process_indicator(id){
	$(id+'_pr_indicator').innerHTML = "<img src=\""+sitecore_path+core_path+"imgs/process_indicators/mozilla_giallo.gif\" width=\"12\" height=\"12\" style=\"margin:0\">";
}

function showReqResults(req, id){
	$(id+'_pr_indicator').innerHTML = "<img src=\""+sitecore_path+core_path+"imgs/spacer.gif\" width=\"12\" height=\"12\" />";
	$(id).innerHTML = req.responseText;
}

function doSimpleRequest(url,params,actionMethod){
	if (actionMethod==null) actionMethod = "post";
	if (actionMethod=='get'){
			url = url+params;
 			var req = new Ajax.Request(sitecore_path+url,{method: actionMethod});
	}else var req = new Ajax.Request(sitecore_path+url,{method: actionMethod,parameters: params});
}
