function showCount()
{
	if ( xmlHttp.readyState == 4 ) {
    if ( xmlHttp.status == 200 ) {
      document.getElementById( 'resultCount' ).innerHTML = '<span style="font-size: 12px"><b>' + xmlHttp.responseText + ' results </b>on this query</span>';
    }
	}  
}

function countResults( tfSearch )
{
	url = '/modules/search/search.php?tfSearch=' + tfSearch + '&action=count';
  xmlHttp.open( "GET", url );
  xmlHttp.onreadystatechange = showCount;
  xmlHttp.send( null );
}
