  
function ajax( url, element )
{
	var progressBar = $('progressBar')
	
	new Ajax.Request(url, {
		method:'get',
		parameters: {ajax: 'y'},
		evalJS: 'force',
		onCreate: function() {
		/*************************************
		   Prepare progress Bar for displaing...
		***************************************/
		progressBar.style.visibility = 'visible';
		var x = (document.body.offsetWidth - progressBar.offsetWidth) / 2;
		var y = (document.body.offsetHeight - progressBar.offsetHeight) / 2;
		progressBar.style.left = x + 'px'; 
		progressBar.style.top = y + 'px'; 
		},
		onSuccess: function(response) {
			var htmlText = response.responseText;
			element.innerHTML = htmlText;
			progressBar.style.visibility = 'hidden';
		},
		onFailure: function(){ 
			alert('There was a problem with the request !');
		}

	});

}

