<form action="Lookup.html" method="get">
% foreach my $arg ( grep exists $ARGS{$_}, @PassArguments ) {
  <input type="hidden" name="<% $arg %>" value="<% $ARGS{ $arg } %>" />
% }
    <span class="label"><%loc('Research Tool')%>:</span>
    <span class="input">
      <input type="text" size="30" name="q" value="<% $q %>" /> at
      <select name="ResearchTool">
% for my $tool (grep {defined } keys %$research_tools) {
        <option value="<%$tool%>" <%$tool eq $ResearchTool ? 'SELECTED' : ''%>><% $research_tools->{$tool}->{FriendlyName} %></option>
%}
      </select>
    </span>
    <input type="submit" value="<%loc('Go')%>" />
</form>
<%args>
$q => ''
$ResearchTool => ''
@PassArguments => ()
</%args>
<%INIT>
my $unique_id = time().rand();
$m->notes(rtir_research_iframe_id => $unique_id);
my $research_tools = RT->Config->Get('RTIRIframeResearchToolConfig');
</%INIT>
