var xmlHttp1

function showDetails1_1(cabType, codeword)
{ 
xmlHttp1=GetXmlHttpObject1();
if (xmlHttp1==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 }
 
var url1="getids_1.php";
url1=url1+"?s1="+cabType+ "&s2="+codeword;
url1=url1+"&sid="+Math.random();
xmlHttp1.onreadystatechange=stateChanged1;
xmlHttp1.open("GET",url1,false);
xmlHttp1.send(null);

if (xmlHttp1.onreadystatechange == null) stateChanged1();
}
function stateChanged1() 
{ 
//alert("STATE: "+ xmlHttp.readyState)
if (xmlHttp1.readyState==4)
 { 

 document.getElementById("txtHint_1").innerHTML=xmlHttp1.responseText;
 
// alert("ID: " + document.getElementById("txtHint").innerHTML);
 } 
}
function GetXmlHttpObject1()
{
var xmlHttp1=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp1=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp1=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp1;
}
