function checkURLForm(frm) {
	return true;
}
function toggleDiv(div) {
	if(document.getElementById(div).style.display=="block") {
		document.getElementById(div).style.display="none";
	}
	else {
		document.getElementById(div).style.display="block";
	}
}
    function createRequestObject() { 

       var req; 
    
       if(window.XMLHttpRequest){ 
          // Firefox, Safari, Opera... 
          req = new XMLHttpRequest(); 
       } else if(window.ActiveXObject) { 
          // Internet Explorer 5+ 
          req = new ActiveXObject("Microsoft.XMLHTTP"); 
       } else { 
          // There is an error creating the object, 
          // just as an old browser is being used. 
          alert('Problem creating the XMLHttpRequest object'); 
       } 
    
       return req; 
    
    } 
    
    // Make the XMLHttpRequest object 
    var http = createRequestObject(); 
    
    function sendRequest(q) { 
    
       // Open PHP script for requests 
       http.open('get', 'suggest.php?q='+q); 
       http.onreadystatechange = handleResponse; 
       http.send(null); 
    
    } 
    
    function handleResponse() { 
    
       if(http.readyState == 4 && http.status == 200){ 
    
          // Text returned FROM the PHP script 
          var response = http.responseText; 
    
          if(response) { 
             // UPDATE ajaxTest content 
             //document.getElementById("searchResults").style.display = block;
             document.getElementById("searchResults").style.display = "block";
             //alert("boo");
             document.getElementById("searchResults").innerHTML = response; 
          } 
    
       } 
    
    }  
