<!--

// funziona con mozilla ed explorer
function getid(id) {
 // oggetto id
 idobj = document.getElementById(id).style.display;
 if(idobj == "none") {
  document.getElementById(id).style.display = "block";
 } else if (idobj == "block") {
  document.getElementById(id).style.display = "none";
 }
}
// apre sito in un'altra scheda \ finestra
function sito(URL) {
  finestra = window.open(URL,"","");
}
// apre sito con dimensioni
function sitopop(URL) {
  finestra = window.open(URL,"","menubar=no,toolbar=no,status=no,"+
   "scrollbars=yes,resizable=yes,width=750,height=550,top=100,left=105");
}

// aggiungi ai preferiti compatibile con tutti i browser
function addToFavorites(url, title) {
	var sURL = window.location;
	var sText = title;

	try
	{	if (window.sidebar)
			window.sidebar.addPanel(sText, sURL, "");
		else if (window.external)
			window.external.AddFavorite(sURL, sText);
		else if (window.opera && window.print)
		{	var oA = document.createElement('a');
			oA.setAttribute('rel','sidebar');
			oA.setAttribute('href', sURL);
			oA.setAttribute('title', sText);
			oA.click();
		}
	}
	catch (e)
	{	
	}
}

// setta sito come home page
function setAsHome(url){
	if (window.external) { // solo x Internet Explorer
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage(url);
	} else window.alert("Funzione non supportata dal browser in uso");
}

// cambio nome classe ad un id
function changeclass(id, cls1) {
 document.getElementById(id).className=cls1;
}

-->