$(document).ready(
	function() {
				
		$("#customerTable").hide();
		
		// If server is slow, then slow building of table needs to be explained
		// so track progress of jQuery::post
		$('#progress').ajaxStart( function(){
			$(this).text('Waiting for server ...');
		} )// end #status ajaxStart
		.ajaxStop( function(){
			$(this).text('');
			$("#customerTable").tablesorter({widgets:['zebra']});
		} ); // end #status ajaxStop

		// Initialise customerTable
		$.post("echoTD.php", PassObj,  
			function (data)
				{	// Does the search result in any valid choices?
					if (data.indexOf("<tr")==0) // at least one table item, then.
					{	$('#customerBody').html(data);
						$('#customerTable').show(); } 
					else 
					{	// no table items to display
						// customerTable remains hidden
						$("#instructions").html(data); 	} // end if else
				},"html");		
			
		
	} // end anon function for ready
); // end ready

