 



// EO validate_gender()

//--------------------------------shiv kumar-------------------------------------------------------//
var xmlHttp
function GetXmlHttpObject()
{
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;
}
/*------------------------------EXPORTS2008-----------------------------------------------*/
function getStates(countryid,domain)
{ 

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url=domain+"Resources/function/ajaxFunction.php?countryUpdate=countryUpdate&countryid="+countryid;
xmlHttp.onreadystatechange=states;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function states() 
{ 
if (xmlHttp.readyState==4)
{ 
/*var ajax_response;
	ajax_response = xmlHttp.responseText*/
	//alert(xmlHttp.responseText);
	document.getElementById("statesid").innerHTML=xmlHttp.responseText;
}
}

function getStatesregistration(countryid,domain)
{ 

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url=domain+"Resources/function/ajaxFunction.php?countryRegistration=countryRegistration&countryid="+countryid;
xmlHttp.onreadystatechange=states;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function states() 
{ 
if (xmlHttp.readyState==4)
{ 
/*var ajax_response;
	ajax_response = xmlHttp.responseText*/
	//alert(xmlHttp.responseText);
	document.getElementById("statesid").innerHTML=xmlHttp.responseText;
}
}
//-------------------------------Community-------------------------------//
function getCommunity(religionid,domain)
{ 

	

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url=domain+"Resources/function/ajaxFunction.php?Community=Community&religionid="+religionid;
xmlHttp.onreadystatechange=Community;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function Community() 
{ 
if (xmlHttp.readyState==4)
{ 
/*var ajax_response;
	ajax_response = xmlHttp.responseText*/
	
//alert(xmlHttp.responseText);
	document.getElementById("caste_dup").innerHTML=xmlHttp.responseText;
}
}
