// send2friend(email, mensaje, nsender, esender, masopciones)

function send2friendlargo (email, mensaje, nombresender, emailsender, masopciones)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttpf2=new XMLHttpRequest();	
  }
else
  {// code for IE6, IE5
  xmlhttpf2=new ActiveXObject("Microsoft.XMLHTTP");
  //xmlhttpf2=new ActiveXObject("MSXML2.XMLHTTP.3.0");
  }
xmlhttpf2.onreadystatechange=function()
  {
  if (xmlhttpf2.readyState==4 && xmlhttpf2.status==200)
    {
    document.getElementById("form2").innerHTML=xmlhttpf2.responseText;
    }
  }
xmlhttpf2.open("GET","poll_vote_all.php?vote=0&poll=0&amigo=1&direccion="+email+"&mensaje="+mensaje+"&nombresender="+nombresender+"&emailsender="+emailsender+"&masopciones="+masopciones,true);
xmlhttpf2.send();
}



function send2friend(email)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttpf2=new XMLHttpRequest();	
  }
else
  {// code for IE6, IE5
  xmlhttpf2=new ActiveXObject("Microsoft.XMLHTTP");
  //xmlhttpf2=new ActiveXObject("MSXML2.XMLHTTP.3.0");
  }
xmlhttpf2.onreadystatechange=function()
  {
  if (xmlhttpf2.readyState==4 && xmlhttpf2.status==200)
    {
    document.getElementById("form2").innerHTML=xmlhttpf2.responseText;
    }
  }
xmlhttpf2.open("GET","poll_vote_all.php?vote=0&poll=0&amigo=1&direccion="+email,true);
xmlhttpf2.send();
}

