anchor.diff:  	 			$('lookupResults').innerHTML = err;
   	 		}
   	 		finally	{
  -		 		setTimeout("StatusSpan.stop()", 1000);
  +		 		setTimeout(function()	{ StatusSpan.stop(numpatients)}, 1000);
  +		 		
  +		 		AWwrapper.makeGrid(_myData, _myColumns);
  +
   		 	}
   	 	}
   	 	
  +	 }
  +	 
  +	 
  +	 var AWwrapper = {
  +	 	'obj' : new Active.Controls.Grid,
  +	 	'makeGrid' : function(myData, myColumns)	{
  +			//	create ActiveWidgets Grid javascript object
  +			
  +			//these must be correct!!
  +			//	set number of rows/columns
  +			this.obj.setRowProperty("count", myData.length);
  +			this.obj.setColumnProperty("count", myColumns.length);
  +			
  +			//	provide cells and headers text
  +			this.obj.setDataProperty("text", function(i, j){return myData[i][j]});
  +			this.obj.setColumnProperty("text", function(i){return myColumns[i]});
  +			
  +			//	set headers width/height
  +			this.obj.setRowHeaderWidth("28px");
  +			this.obj.setColumnHeaderHeight("20px");
  +			
  +			//	set click action handler
  +			this.obj.setAction("click", function(src){window.status = src.getItemProperty("text")});
  +			this.obj.setStyle("height", "100%");
  +			this.obj.setStyle("width", "100%"); 
  +			//	write grid html to the page
  +
  +		this.obj.getTemplate("layout").action("adjustSize");
  +			$('res2').innerHTML = this.obj;
  +			$('res2').style.height = "1000px";
  +			alert(this.obj.height);
  +			//document.write(this.obj);
  +	 	
  +	 	},
  +	 	'writeGrid' : function()	{
  +	 		document.write(this.obj);
  +	 	}
  +	 
   	 }
   		 
   		window.onload = function()	{
  
positive.code: 	<div id="lookupResults" style="display:none">
  		hey, here are the results
  	</div>
  </fieldset>
  <br/><br/>
negative.code: 		 		);
  		 		*/
  		 		games = txt.getElementsByTagName("sample");
  		 		
  		 		if(games.length < 1)	{
  		 			//no records
  		 			throw("No records found. Please try again.");
  		 		}
  		 		
  				table = d.createElement("table");
  				table.setAttribute("cellspacing","0");
  				table.setAttribute("id","dataTable");
  