var xmlHttp2;
function forgotpass2()
{ 
	 var uname=document.getElementById("fgp_name").value;
	var semail=document.getElementById("fgp_semail").value;
   // var burl=document.getElementById("fgp_burl").value;
   var home_link=document.getElementById("fg_home_link").value;
	
xmlHttp2=GetXmlHttpObject()

if (xmlHttp2==null)
 {
 alert ("Browser does not support HTTP Request")
 return 
 }
  if(uname=="")
	{
	alert("Must fill username");
	return ;
	}
	else
	{
var url=home_link+"plugins/site/themes/default/forgotpsend.php"
url=url+"?n="+uname+"&e="+semail;
xmlHttp2.open("GET",url,true)
xmlHttp2.onreadystatechange=stateChanged2 ;
xmlHttp2.send(null);

	}
}

function stateChanged2() 
{ 
if (xmlHttp2.readyState==4 )

 { 
document.getElementById("fgp_name").value='';
document.getElementById("forgot_pass_form1").style.display = 'none';
document.getElementById("txtHint22").style.display = 'block';
document.getElementById("txtHint2").innerHTML=xmlHttp2.responseText 	

 } 
}


function GetXmlHttpObject()
{
	var xmlHttp2=null;
	
try
 {
	 // Firefox, Opera 8.0+, Safari
 xmlHttp2=new XMLHttpRequest();
 }
catch (e)
 {
	
 //Internet Explorer
 try
  {
  xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
 
  }
 catch (e)
  {
	  
  xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
  
  }
 }
 
 
return xmlHttp2;
}



