<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchResults.ascx.vb" Inherits="Controls_SearchResults" %>
<table cellpadding="0" cellspacing="5">
  <tr>
		<td colspan="2" style="font-size:14px"><br /><asp:Label ID="lblCriteria" runat="server" /></td>
	</tr>
  <tr>
    <td style="width:10px"></td>
    <td><br /><asp:Literal ID="ltrSearchResults" runat="server" /></td>
  </tr>
  <tr>
    <td colspan="2">
			<br />
      <asp:DataGrid ID="grdSearchResults" AutoGenerateColumns="false" AllowPaging="True" BorderWidth="0px" PageSize="10" PagerStyle-Mode="NumericPages" ShowHeader="false" runat="server">
        <Columns>
          <asp:TemplateColumn>
            <ItemTemplate>
                <div style="font-size:12px;font-weight:bold">
									<a href='<%#RenderUrl(DataBinder.Eval(Container.DataItem, "URL"), DataBinder.Eval(Container.DataItem, "MimeType"))%>' 
									target='<%# RenderTarget(DataBinder.Eval(Container.DataItem, "MimeType"))%>'>
										<%#DataBinder.Eval(Container.DataItem, "Title")%>
									</a>
								</div>
                <div><%#DataBinder.Eval(Container.DataItem, "Summary")%></div>
                <br />
            </ItemTemplate>
          </asp:TemplateColumn>
        </Columns>
          <PagerStyle Mode="NumericPages" />
      </asp:DataGrid>
    </td>
  </tr>
</table>
<input type="hidden" id="hdnPageNum" name="hdnPageNum" value="hdnPageNum" />
<input type="hidden" id="hdnSearchCriteria" name="hdnSearchCriteria" value="<%=Criteria%>" />

<script type="text/javascript" language="javascript">
function fnChanged(a)
    {
        var obj
        obj = document.getElementById('hdnPageNum');
        obj.value = a;
    }
</script>