function ahah(url,target) {
		var strTime = new Date().getTime();		
		url = url + "&i=" + strTime
   try {
	   document.getElementById(target).innerHTML = '&nbsp;<b>Caricamento in corso...</b> ';
	   if (window.XMLHttpRequest) {
		   req = new XMLHttpRequest();
		   req.onreadystatechange = function() {ahahDone(target);};
		   req.open("GET", url, true);
		   req.send(null);
	   } else if (window.ActiveXObject) {
		   req = new ActiveXObject("Microsoft.XMLHTTP");
		   if (req) {
			   req.onreadystatechange = function() {ahahDone(target);};
			   req.open("GET", url, true);
			   req.send();
		   }
	   }
	}catch(z){ 
   		//alert(z.description.toString())
	}
}

function ahahDone(target) {
   if (req.readyState == 4) {
	   if (req.status == 200 || req.status == 304) {
		   results = req.responseText;
		   document.getElementById(target).innerHTML = results;
	   } else {
		  // document.getElementById(target).innerHTML = "Attenzione si è verificato un'errore nell'elaborazione dei dati"; //+escape(req.statusText);
	   }
   }
}
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
