 function correo(){
 
   var contenedor;
   var ajax;

   mail = document.getElementById("mail").value;
   //t1 = document.getElementById('log').value;
   //t2 = document.getElementById('pwd').value;

   
   ajax = nuevoAjax(ajax);
   ajax.open("POST", "code/mail.php", true);
   
   ajax.onreadystatechange=function() {
      if (ajax.readyState==4) {
		 document.getElementById("ne").innerHTML = ajax.responseText;
      }
   }
   
   ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
   ajax.send("mail="+mail); 
 
 }
 
 
 
 function nuevoAjax(xmlhttp){

   try {
       xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } 
   catch (e) {
       try {
         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } 
      catch (E) {
          xmlhttp = false;
      }
   }
   if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
      xmlhttp = new XMLHttpRequest();
   }
   return xmlhttp
}



