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 checkDetails1(FrmIn){

	var emailTxt = FrmIn.LaFemailLogIN.value;
	var PassI	 = FrmIn.LAFpasswordLogIN.value;
	    
    if (!xmlhttp) xmlhttp = GetXmlHttpRequest();
    if (!xmlhttp) return;


	var emailTxt = encodeURIComponent(emailTxt);

    var url = 'CheckEmail1.asp?emailTxt=' + emailTxt;
    url=url+"&sid="+Math.random();
    
    xmlhttp.open('GET', url, true);
    xmlhttp.onreadystatechange = DisplayResults1;

    xmlhttp.send(null);
	 
	return false;

	}






function DisplayResults1() { 	// alert(xmlhttp.status);
	if(xmlhttp.readyState == 4 ) {  //&& xmlhttp.status == 200
		document.getElementById('errM').innerHTML = xmlhttp.responseText;
   }
}


