var xmlHttpsub
function showsubcat(str1)
{ 
xmlHttpsub=GetXmlHttpObject1()
if (xmlHttpsub==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var pronum=document.getElementById("prognum").value;
var url="getsubcatpostcalnav.php"
url=url+"?q="+str1+"&prognum="+pronum;
url=url+"&sid="+Math.random()
xmlHttpsub.onreadystatechange=stateChangedsub 
xmlHttpsub.open("get",url,true)
xmlHttpsub.send(null);
//document.getElementById("errsub").innerHTML="<img src='images/loader.gif' border=0>";
document.getElementById("txthintsub").innerHTML="<img src='images/loader.gif' border=0>";
}
function stateChangedsub() 
{ 
if (xmlHttpsub.readyState==4 || xmlHttpsub.readyState=="complete")
 { 
//document.getElementById("errsub").innerHTML="";
 document.getElementById("txthintsub").innerHTML=xmlHttpsub.responseText 
 } 
}
function GetXmlHttpObject1()
{
var xmlHttpsub=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpsub=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
try
  {
  xmlHttpsub=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpsub=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpsub;
}
