var xmlhttp;
var searchResultsObj;
var searchbox;

function XmlHttpCall( ) {
  try {
		if(xmlhttp) {
			xmlhttp.onreadystatechange = function( ) {
				if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
          showCats( xmlhttp.responseText );
        } else if( searchResultsObj )
           searchResultsObj.innerHTML = '';
			}
			xmlhttp.open("GET", url, true);
			xmlhttp.send(null);
		}
	}
	catch(ex) {
		alert(ex);
	}
}
function showCats( reponseText ) {
  findObj( 'showCatstd' ).innerHTML = reponseText;    
}


function ResetXMLHttp( ) {
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(ex) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(except) {
			xmlhttp = false;
		}
	}

	// Thank goodness!! They at least aren't using that...let's check for REAL support.
	if(!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		xmlhttp = new XMLHttpRequest( );
	}
	return xmlhttp;
}

function newCell(id, content ) {
  var cell = document.createElement("td");
  cell.setAttribute( 'id', id);
  cell.innerHTML = content;
  
  return cell;
        
}                                    
