// JavaScript Document

var xmlHttpob;

function getxmlhttpobj()
{
  var xmlHttpob = null;
  try
  {
     xmlHttpob = new XMLHttpRequest();
  }
  catch(e)
  {
    try
	{
  	  xmlHttpob = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
	  xmlHttpob = new ActiveXObject("Microsoft.XMLHTTP");
	}	 
  }
  return xmlHttpob;	 
}

function chklog()
{
	var a = document.resumsub.user.value;
	showcustomer(a);
}

function showcustomer(str)
{
	xmlHttpob = getxmlhttpobj();
	if(xmlHttpob == null)
	{
		aleart("your browser is not supporting to object")
		return;
	}
	url = "http://www.jobs.bolindiabol.com/getuserinfo.aspx";
	url = url + "?q="+str;
	url = url + "&sid="+Math.random();
	xmlHttpob.onreadystatechange = stateChanged;
	xmlHttpob.open("GET", url, true);
	xmlHttpob.send(null);
}

function stateChanged()
{
    if(xmlHttpob.readystate == 1)
	{
	  var st = "<img src=images/wait.gif width=69 height=18 border=0>";
	  document.getElementById("txthp").innerHTML = st;
	}
    
	if(xmlHttpob.readystate == 4)
	{
		document.getElementById("txthp").innerHTML = xmlHttpob.responseText;
    }		
		
}