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

function showforgotpwd() {
var servers = document.location.hostname;
document.getElementById('showforgot').innerHTML='<img src="http://'+servers+'/india/images/loadingSuggestion.gif" alt="Loading" title="Loading" width="54" height="55">';
document.getElementById('showforgot').style.display = "block";
xmlHttp2=GetXmlHttpObject_login();
		var url="http://"+servers+"/india/lostpassword.php";
		url=url+"?sid="+Math.random();
		xmlHttp2.onreadystatechange=function(){
		if (xmlHttp2.readyState==4){
		document.getElementById('showforgot').innerHTML=xmlHttp2.responseText;
		}	
								 }			
xmlHttp2.open("GET",url,true);
xmlHttp2.send(null); 
}
function hidediv(divid) {
	if(document.getElementById(divid)) {
		document.getElementById(divid).style.display = "none";
	} else {
		self.close();
	}
}
function submitpwdrecovery()
{
var email = document.getElementById("email").value;
var servers = document.location.hostname;
document.getElementById('mymsgdiv').innerHTML='Please wait....';
document.getElementById('mymsgdiv').style.display = "block";
xmlHttp3=GetXmlHttpObject_login();
		var url="http://"+servers+"/india/sendpassword.php?email="+email;
		url=url+"&sid="+Math.random();
		xmlHttp3.onreadystatechange=function(){
		if (xmlHttp3.readyState==4){
		document.getElementById('mymsgdiv').innerHTML=xmlHttp3.responseText;
		}	
								 }			
xmlHttp3.open("GET",url,true);
xmlHttp3.send(null); 
}
