// JavaScript Document

//function attiva(idBox, indirizzo, myHash) {
//	//alert(indirizzo);
//	var el = $('addMePLS');
//	var histObj = {hash: myHash, arg: indirizzo};
//	HistMan.register(el, histObj);
//	el.click();
//}

function attiva(idBox, url) {
	new Ajax.Updater(idBox, url, {
		evalScripts: true,
		method: 'GET'
	}); 
}


//function goTo(pagina, id) {
//
//	var req = new Request.HTML({
//		url: pagina,
//		update: id,			// l'elemento che verrą aggiornato al completamento della richiesta
//		evalScripts: true
//   });
//   	req.get({'variabile': 'Andrea'});
//}

//window.addEvent('domready', function() {
//		
//			var text = $('contenuti'), ok = $('link1');
//			var req = new Request.HTML({
//				url: 'testContenuto.php',		// l'url da contattare
//				update: text,			// l'elemento che verrą aggiornato al completamento della richiesta
//				evalScripts: true
////				,		// gli script contenuti nel responso non verranno azionati
////				onRequest: function() {
////					text.set('php', 'Request is running...');
////				},
////				onComplete: function(tree, elements, html, js) {
////					text.set('php', html);
////				},
////				onFailure: function() {
////					text.set('php', 'The Request has failed...');
////				}
//			});
//			
//			ok.addEvent('click', function() {
//				req.get({'variabile': 'Andrea'});
//			});
//		
//		});
//
function fcnRassegna(oggetto) {
	if  (document.getElementById(oggetto).style.display == 'none') {
		document.getElementById(oggetto).style.display = 'inline';
	} else {
		document.getElementById(oggetto).style.display = 'none';
	}
};
