function SendAccountInfo(useremail){
 	if(!isEmailAddr(useremail))
	{
		document.getElementById("forgotpas").innerHTML = 'Please enter a complete email address in the form: yourname@yourdomain.com.';
	 return false;
	}else{
  axmlHttp=aGetXmlHttpObject();
	if (axmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  } 
	document.getElementById("forgotpas").style.visibility = 'visible';
	document.getElementById("forgotpas").style.display	= 'block';
  	document.getElementById('forgotpas').innerHTML = '<img src="images/indicator_blue_small.gif">';
	document.getElementById('forgotpas').innerHTML+= 'Please Wait...';
	var url="Forgotpass.php";
	url=url+"?Invitemail="+useremail;
 	url=url+"&sid="+Math.random();
	axmlHttp.onreadystatechange=stateChangeda;
	 //alert(url);
	axmlHttp.open("GET",url,true);
	axmlHttp.send("forgotpas");
 	}
	

function stateChangeda() 
{ 
	if (axmlHttp.readyState==4){ 
		//document.getElementById(tdid).innerHTML=xmlHttp.responseText;
		if (axmlHttp.status == 200){
			var response = axmlHttp.responseText;
			document.getElementById("forgotpas").innerHTML = response;
  			}
		}
	}
 
function aGetXmlHttpObject()
{
var axmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  axmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    axmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    axmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return axmlHttp;
}

function isEmailAddr(email)
{
  var result = false;
  var theStr = new String(email);
  var index = theStr.indexOf("@");
  if (index > 0)
  {
	var pindex = theStr.indexOf(".",index);
	if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}
}
