window.addEvent('domready', function() {
	var inser=document.getElementById('ricerca');
	if (inser) {
		$('ricerca').addEvent('submit', function(e) {
			new Event(e).stop();
			cerca();
		});
	}
function cerca() {
		var radice=$('radice').getProperty('value');
		var url = radice+'include/ricerca.php';
		var log = $('notizie').addClass('ajax-loading');
		//alert(url);
		var ajax = new Ajax(url, { 
			update:log,								
			evalScripts: true,
			data: $("ricerca"),
			onComplete: function() {
				// when complete, we remove the spinner
				log.removeClass('ajax-loading'); 
			},
			onCancel: function() {
				// just remove the spinner
				log.removeClass('ajax-loading'); 
			}
		}); // fine var ajax
		ajax.request();
} //fine funzione

}); // fine windows onload