if (document.srchForm != null)
{
	if (document.srchForm.q != null)
	{
document.srchForm.q.onkeyup = function()	{
	getSelect(document.srchForm.q.value, '', 'searchResults');
}
	}
}

function doHideSearcher()
{
	var searchElement = document.getElementById("searchResults");
	if (searchElement != null)
		searchElement.style.display='none';
}
function doHider(str)	{
	str.style.display='none';
}
function getSelect(theRequest, theFilter, destination){

destination = document.getElementById("searchResults");
	destination.style.display='block';

	if(theRequest!=''){

	 var doc = null; 

// Make a new XMLHttp object

	   if (typeof window.ActiveXObject != 'undefined' ) 
	   { 
		   doc = new ActiveXObject("Microsoft.XMLHTTP"); 
	   } 
	   else 
	   { 
		   doc = new XMLHttpRequest();
	   }

	 
// Load the result from the response page
// Note the response page can be any page that returns the right result. 
// I used ASP. PHP, PERL... etc could acheive the same result

// ** As far a I know firefox will only load a document on the SAME domain!!

		if (doc){ 	 
		 doc.open("GET", "/ScriptLibrary/dynamicSearch.asp?q="+theRequest+"&f="+theFilter, false);
	   doc.send(null);

// Write the response to the div 		
			destination.innerHTML = doc.responseText;

		}else{
		
			destination.innerHTML = 'Browser unable to create XMLHttp Object';
		}
		
}else{

destination.innerHTML= "" ;
}


}



	 
	 
	 
	 


