
function documento(id)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Il tuo browser non supporta AJAX!");
  return;
  } 
	var url="documento_ajax.asp";
	url=url+"?id="+id;
	url=url+"&sid="+Math.random();
	xmlHttp.onreadystatechange=stateChangeddocumento;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}




function stateChangeddocumento() 
{ 
if (xmlHttp.readyState==4)
{ 
	document.getElementById("contenuto").innerHTML=xmlHttp.responseText;
}
}





function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}


function cellaOver(ident) 
{
if(window.navigator.userAgent.indexOf("msie") != -1) 
	ident.style.cursor = "hand";
else
	ident.style.cursor = "pointer";
}
