function getNews()
{  
  var xmlHttp;
  try
  {    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();  
  }
  catch (e)
  {    // Internet Explorer
    try
    {     
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {      
      try
      {       
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch (e)
      {        
        alert("Your browser does not support AJAX!");
        return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
  {
    if(xmlHttp.readyState==4)
    {
      document.getElementById("testo_news").value = xmlHttp.responseText;
    }
  }
  xmlHttp.open("GET","notizie.asp",true);
  xmlHttp.send(null); 
}

function popup(url, w, h)
{
  var winl = screen.width ? (screen.width - w) / 2 : 100; 
  var wint = screen.width ? (screen.height - h) / 2 : 100; 
  window.open(url,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width="+w+",height="+h+",top="+ wint + ",left=" + winl) 
}
