// JavaScript Document
function ajax_call2(params, url, div){
	url += params;		
	var myAjax = new Ajax.Updater(	document.createElement('div'), 
									url, {
									method: 'post',
									onLoading: function(request) {showLoading(div)},
									asynchronous:true,
									evalScripts:true, 
									requestHeaders:['X-Update', div]
									});
}

function showLoading(element, pars){
	$(element).innerHTML = '<div style="color:#CC0000; height:22px;">Loading...</div>';
}

function ajax_call(params, url, div){
	url += params;
	var myAjax = new Ajax.Updater(  div, url, {
									method: 'post',
									onLoading: function(request) {showLoading(div)},
									asynchronous:true,
									evalScripts:true});
}