
//http://jibbering.com/2002/4/httprequest.html
function getHTTPObject() {
  var xmlhttp;
	try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	  try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
		xmlhttp = false;
	  }
	}
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
	try {
	  xmlhttp = new XMLHttpRequest();
	} catch (e) {
	  xmlhttp = false;
	}
  }
  return xmlhttp;
}



function ShowControls() {
	var GetSearchURL;
	GetSearchURL = "as.asp?id=";
	var xmlhttp1;
	var categoryValue = document.advancedsearch.category.options[document.advancedsearch.category.selectedIndex].value;	
	show();
	xmlhttp1 = new getHTTPObject();
	xmlhttp1.open("GET", GetSearchURL + escape(categoryValue), true);
	xmlhttp1.onreadystatechange=function() {
	if (xmlhttp1.readyState==4) {
	//alert(xmlhttp1.responseText)
	document.getElementById("othersearch").innerHTML=xmlhttp1.responseText;
	}
	}
	xmlhttp1.send(null);
	hide();
}
  
  
  
  function show()
  {
  
	  var splash;
	  if(document.getElementById) 
	  {
		splash = document.getElementById("splashScreen");
		splash.style.visibility = "visible";
	  }
	  else if (document.layers)
	  {
		//nn4
		splash = document.splashScreen;
		splash.visibility = "show";
	  }
	  else if(document.all) 
	  {
		//ie4
		splash = document.all.splashScreen;
		splash.style.visibility = "visible";

	  }
	  document.getElementById("Search").disabled=true;
  }
  
  function hide()
    {
    
  	  var splash;
  	  if(document.getElementById) 
  	  {
  		splash = document.getElementById("splashScreen");
  		splash.style.visibility = "hidden";
  	  }
  	  else if (document.layers)
  	  {
  		//nn4
  		splash = document.splashScreen;
  		splash.visibility = "hide";
  	  }
  	  else if(document.all) 
  	  {
  		//ie4
  		splash = document.all.splashScreen;
  		splash.style.visibility = "hidden";
  
  	  }
  	  document.getElementById("Search").disabled=false;
  }
  
  /*
        var obj = document.getElementById("Load");
  	if (obj.style.visibility=="hidden") 
  	{ 
  	        // if it is checked, make it visible, if not, hide it
  		obj.style.visibility = "visible";
  		document.getElementById("Search").disabled=true;
  		//alert("ok");
  	} 
  	else 
  	{
  		obj.style.visibility = "hidden";
  		document.getElementById("Search").disabled=false;
  		//alert("notok");
  	}
	}
*/


