function pay(){
var xmlhttp;

if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {
  // code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
{
if(xmlhttp.readyState==4)
  {
 // document.getElementById('informacion').innerHTML=xmlhttp.responseText;
  }
}
var items=document.getElementById("items").value;
var total=document.getElementById("total").value;
var operation=document.getElementById("operation").value;
var nm=document.getElementById("nm").value;
var cmp=document.getElementById("cmp").value;
var ad=document.getElementById("ad").value;
var lc=document.getElementById("lc").value;
var ph=document.getElementById("ph").value;
var em=document.getElementById("em").value;
var cif=document.getElementById("cif").value;
 document.getElementById('informacion').innerHTML="ajaxPaypal.php?items="+items+"&total="+total+"&operation="+operation+"&nm="+nm+"&cmp="+cmp+"&ad="+ad+"&lc="+lc+"&ph="+ph+"&em="+em+"&cif="+cif+"";
valorsURL="ajaxPaypal.php?items="+items+"&total="+total+"&operation="+operation+"&nm="+nm+"&cmp="+cmp+"&ad="+ad+"&lc="+lc+"&ph="+ph+"&em="+em+"&cif="+cif+"";

	
xmlhttp.open("POST",valorsURL,true);
xmlhttp.send(null);
}



