function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}

var xmlhttp;

function aa(cntry)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }

xmlhttp.open("GET","php/config/getstate.php?cntry="+cntry,false);
xmlhttp.send(null);
//alert(xmlhttp.responseText);
document.getElementById("s1").innerHTML=xmlhttp.responseText;

}


function aa1(cntry)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }

xmlhttp.open("GET","php/config/getstate1.php?cntry="+cntry,false);
xmlhttp.send(null);
//alert(xmlhttp.responseText);
document.getElementById("s2").innerHTML=xmlhttp.responseText;
document.getElementById("s3").innerHTML="<select name='cityn'><option value=''>Select City</option></select>";

}
function aa2(cntry)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Browser does not support HTTP Request");
  return;
  }

xmlhttp.open("GET","php/config/getcity.php?cntry="+cntry,false);
xmlhttp.send(null);
//alert(xmlhttp.responseText);
document.getElementById("s3").innerHTML=xmlhttp.responseText;

}

