/////////////////////////////////////ajax script for find password////////////////////////////////////////

var xmlHttp_search;


function ShowState(thiscountry,selState)
{
xmlHttp_search=GetXmlHttpObject()

if (xmlHttp_search==null)

  {
	  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="ajaxcountrystate.php";
url+="?countryid="+thiscountry;
if(selState!='')
{
url+="&selState="+selState;
}

xmlHttp_search.onreadystatechange=comment_cat_search;

xmlHttp_search.open("GET",url,true);

xmlHttp_search.send(null);


}

function comment_cat_search() 
{ 
if (xmlHttp_search.readyState==4)
{ 
var responce_output=xmlHttp_search.responseText;
document.getElementById('stateshow').innerHTML=responce_output;
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
///////////////////////////////////////////end//////////////////////////////////////////////////////////
