function personanewsletter(accio, nom, correu)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttpn=new XMLHttpRequest();	
  }
else
  {// code for IE6, IE5
  xmlhttpn=new ActiveXObject("Microsoft.XMLHTTP");
  //xmlhttpf2=new ActiveXObject("MSXML2.XMLHTTP.3.0");
  }
xmlhttpn.onreadystatechange=function()
  {
  if (xmlhttpn.readyState==4 && xmlhttpn.status==200)
    {
    document.getElementById("altabajanews").innerHTML=xmlhttpn.responseText;
    }
  }
xmlhttpn.open("GET","mail_news.php?accion="+accio+"&nombre="+nom+"&email="+correu,true);
xmlhttpn.send();
}


function personanewshome(accio, nom, correu)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttpnh=new XMLHttpRequest();	
  }
else
  {// code for IE6, IE5
  xmlhttpnh=new ActiveXObject("Microsoft.XMLHTTP");
  //xmlhttpf2=new ActiveXObject("MSXML2.XMLHTTP.3.0");
  }
xmlhttpnh.onreadystatechange=function()
  {
  if (xmlhttpnh.readyState==4 && xmlhttpnh.status==200)
    {
    document.getElementById("altabajanewshome").innerHTML=xmlhttpnh.responseText;
    }
  }
xmlhttpnh.open("GET","mail_news_home.php?accion="+accio+"&nombre="+nom+"&email="+correu,true);
xmlhttpnh.send();
}

