function nuevoAjax(){
var xmlhttp=false;
 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;
}


function limp(){
	
	

var emailp2=document.getElementById('email_password').value='';
document.getElementById('loader_pass').innerHTML = '';

}

function  envio_password(){

    var emailp2=document.getElementById('email_password').value;
	document.getElementById('form_email').style.display = "none";
	document.getElementById('loader_pass').innerHTML = '<img src="php/ajax.gif" width=15 height=15 /><p>Checking Email</p>';  
	setTimeout('enviar_passwords("'+emailp2+'")',1000);	
			
}


   function enviar_passwords(emailp){	  


	
	ajax=nuevoAjax();	
	ajax.open("POST", "php/retrieve_password_frame.php",true);
	
	ajax.onreadystatechange=function() {
		if (ajax.readyState==4) {			
			
		document.getElementById('loader_pass').innerHTML = ajax.responseText;
		document.getElementById('form_email').style.display = "block";
	
		
		}
		

	}
	ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	ajax.send("email="+emailp);
   }
