function loadPage(page, target) {
	var place = page.substring(page.indexOf('/') + 1, page.indexOf('.'));
	if (document.getElementById('general') && document.getElementById(place)) {
		if (document.getElementById('general').innerHTML != null && document.getElementById(place) .innerHTML != null) {
			$('#general').fadeOut('fast', function(){
				document.getElementById('general').innerHTML = document.getElementById(place).innerHTML;
			});
			$('#general').fadeIn('fast');
		}
	}
	if (page != null && target != null) {
		var url = page;
		// notice the use of a proxy to circumvent the Same Origin Policy.
		var notice = $(target);
		//notice.update("<img src='loader.gif' /> Caricamento in corso...");
		new Ajax.Request(url, {
			method: 'get',
			onSuccess: function (transport) {
				var notice = $(target);
				notice.update(transport.responseText);
			}
		});
	}
}
