var xmlHttp

function change_subcategory(url)
{
	
	xmlHttp=GetXmlHttpObject()
	
	if (xmlHttp==null)
	  {
		  alert ("Browser does not support HTTP Request")
		  return
	  } 
	  
	   if(document.getElementById('SupportCategoryParentID').value != "Any")
	  {
		 
	    document.getElementById('inputString').disabled=true;
		
				
	  }
	  
	  
	 var obj_list_box = document.support_search.SupportCategoryParentID;
	 var SupportCategoryParentID = new String(obj_list_box.options[obj_list_box.selectedIndex].value);	
	
	 //var url = "fetch_support_subcat.php"
	 url=url+"?SupportCategoryParentID="+SupportCategoryParentID
	 
	 
  	 xmlHttp.onreadystatechange=loadlist_support
	 xmlHttp.open("GET",url,true)
	 xmlHttp.send(null)
} 

function loadlist_support() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	 { 	 	
		document.getElementById('listContainer1').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;
}

function support_subcatid()
{	
//	alert(document.getElementById('CrewSubCategory').value);
	document.support_search.SupportSubCategoryID.value = document.getElementById('SupportSubCategory').value;	
	//alert(document.crew_search.CrewSubCategoryID.value)
}
