// JavaScript Document
function addbookmark(titolo){
	if (document.all)
	window.external.AddFavorite(document.location, titolo)
}

function caricaPage(pagina) {
		display('framehtml', 'block');
		display('movie', 'none');
		display('content', 'none');	
		if(pagina!="") {
			top.frames.page.location = "php/main.php?modulo=" + pagina + "&toolbar=public";
		}
}

function chiudiPage() {
		display('framehtml', 'none');
		display('movie', 'block');
		display('content', 'block');
		//top.frames.page.location = "blank.html";
		top.frames.page.location = "php/main.php?op=logout";
		
   	document.getElementById('tabella3d').style.backgroundImage="url('immagini/sfumato.gif')";
	document.getElementById('tabella3d').style.backgroundRepeat="repeat-x";
}

function display(cosa, come) {
   if (document.all) {
      eval("document.all." + cosa + ".style.display='" + come + "'");
   }
   else {
      if (document.layers) {
         eval("document.layers." + cosa + ".display='" + come + "'");
	  }
      else if (document.getElementById) {
         document.getElementById('' + cosa + '').style.display=come;
	  }
   }
	
}

