
var xmlhttp;



function GetXmlHttpRequest(){   // this one gets called, not the other onee
   
   var xmlHttpObj;
     if (window.XMLHttpRequest) {
        xmlHttpObj = new XMLHttpRequest();
     } 

     else {
        try
         {
            xmlHttpObj = new ActiveXObject("Msxml2.XMLHTTP");
         }
         catch (e)
         {
            try
            {
               xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e)
            {
               xmlHttpObj = false;
            }
         }
    }
   return xmlHttpObj;
}










function SendUserRemiderEmail(FrmObjIn){
	// user forgotton their password; email addres passed in
	// successs message DIV = EmailReminderDiv

	var ForgottonEmailTxt = FrmObjIn.value;
	
	if (ForgottonEmailTxt.length==0) 
		  {
			  document.getElementById('ForgotEmailErrMessage').innerHTML='No Email Entered';
			  return;
		  }
	
	
    if (!xmlhttp) { xmlhttp = GetXmlHttpRequest(); }
    if (!xmlhttp) return;
	
	
	
	var url="includes/js/SendReminderPasswordLostAndStolen.asp";
	url=url+"?ForgottonEmailTxt="+ForgottonEmailTxt;
	url=url+"&sid="+Math.random();

	xmlhttp.open('GET', url, true);
    xmlhttp.onreadystatechange = SendEmail;
    xmlhttp.send(null);
	 
	return false;
	
	
}




function SendEmail(){
 	

	if (xmlhttp.readyState==4)
	  {
	 	document.getElementById("EmailReminderDiv").innerHTML=xmlhttp.responseText;
	  }
	  

}

