// JavaScript Document



	// Get the HTTP Object
	function getHTTPObject(){
	   if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
	   else if (window.XMLHttpRequest) return new XMLHttpRequest();
	   else {
	      alert("Your browser does not support AJAX.");
	      return null;
	   }
	}   
	 
// Change the value of the outputText field
	function setOutput(){
	    if(httpObject.readyState == 4){
	        //document.getElementById('outputText').value = httpObject.responseText;
			//document.getElementById('outputText').innerHTML = httpObject.responseText
			document.getElementById('outputText').innerHTML = httpObject.responseText
	    }
	 
	}

	// Implement business logic    
	function doWork(){    
	    httpObject = getHTTPObject();
	    if (httpObject != null) {
	        httpObject.open("GET", "ajaxShowEquipment.php?inputText="
	                        +document.getElementById('inputText').value, true);
	        httpObject.send(null); 
	        httpObject.onreadystatechange = setOutput;
	    }
}

var httpObject = null;

