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: <script language="javascript" src="js/prototype_1.5pre.js"></script>
  <script language="javascript" src="js/event-selectors.js"></script>
  
  <script type='text/javascript' src='dwr/interface/IdLookup.js'></script>
  <script type='text/javascript' src='dwr/engine.js'></script>
  
  <script language="javascript">
  	
  	var StatusSpan = {
  
negative.code: 	<div id="lookupResults" style="display:none">
  		hey, here are the results
  	</div>
  	<div id="res2">
  	</div>
  	<iframe src="awWrapper.do" frameborder="0" style="width:100%;height:auto; overflow:auto">
  	</iframe>
  
  </fieldset>
  <br/><br/>