var xmlHttp

function selectDrop(str)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 // alert(str);
var url=path_js+"/ajaxload.asp";
url=url+"?query="+str;
//alert(url);
xmlHttp.open("GET",url,false);
xmlHttp.onreadystatechange=ajaxdropdown;
xmlHttp.send(null);
}

function ajaxdropdown() 
{ 
if (xmlHttp.readyState==4)
{ 
//do the work
var value = xmlHttp.responseText;
//alert(value);
if(value != "") 
{
document.getElementById("selectworld").innerHTML=xmlHttp.responseText;
}

}
}

//-----------------------------------------------------------

function selectDrop_1(str)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
 // alert(str);
var url=path_js+"/ajaxload_1.asp";
url=url+"?query="+str;
//alert(url);
xmlHttp.open("GET",url,false);
xmlHttp.onreadystatechange=ajaxdropdown_1;
xmlHttp.send(null);
}

function ajaxdropdown_1() 
{ 
if (xmlHttp.readyState==4)
{ 
//do the work
var value = xmlHttp.responseText;
//alert(value);
document.getElementById("selectworld_1").innerHTML=xmlHttp.responseText;
}
}


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;
}