function NascondiExhib(i){
		document.getElementById('Td1'+i).className="invisibile"	
		document.getElementById('Td2'+i).className="invisibile"
		document.getElementById('Td3'+i).className="invisibile"
		document.getElementById('Mos'+i).className=""
		document.getElementById('Nas'+i).className="invisibile"
}

function MostraExhib(i){
		document.getElementById('Td1'+i).className=""	
		document.getElementById('Td2'+i).className=""
		document.getElementById('Td3'+i).className=""
		document.getElementById('Mos'+i).className="invisibile"
		document.getElementById('Nas'+i).className=""
}

// PopUp


function Popup(apri,w,h) {
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
	var stile = "top="+t+", left="+l+", width="+w+", height="+h+", 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes";
	window.open(apri, "", stile);
}

function semitrasparenza(){
		document.getElementById('Foto').className="semitrasparenza"		
}
function toglisemitrasparenza(){
		document.getElementById('Foto').className=""		
}

// Ajax per ricaricare solo la parte sinistra della pagina

var xmlhttp;
function loadXMLDoc(url)
{
xmlhttp=null;
if (window.XMLHttpRequest)
  {// code for IE7, Firefox, Opera, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange=state_Change;
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}

function state_Change()
{
if (xmlhttp.readyState==4)
  {// 4 = "loaded"
  if (xmlhttp.status==200)
    {// 200 = "OK"
    document.getElementById('Left').innerHTML=xmlhttp.responseText;
    }
  else
    {
    alert("Problem retrieving XML data:" + xmlhttp.statusText);
    }
  }
}

// Ajax per ricaricare solo la foto

var xmlhttp;
function loadXMLDoc2(url)
{
xmlhttp=null;
if (window.XMLHttpRequest)
  {// code for IE7, Firefox, Opera, etc.
  xmlhttp=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (xmlhttp!=null)
  {
  xmlhttp.onreadystatechange=state_Change_Foto;
  xmlhttp.open("GET",url,true);
  xmlhttp.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}

function state_Change_Foto()
{
if (xmlhttp.readyState==4)
  {// 4 = "loaded"
  if (xmlhttp.status==200)
    {// 200 = "OK"
    document.getElementById('Foto').innerHTML=xmlhttp.responseText;
    }
  else
    {
    alert("Problem retrieving XML data:" + xmlhttp.statusText);
    }
  }
}
