<%if p%>
  <%include mli_include_preview.html%>
<%else%>
<%if fd == 2%><%set set_focus = 'myform.cm_name'%>
<%elsif fd == 1 or $fd eq ''%><%set call_check = 1%><%endif%>
  <%include include_header.html%>
  <%set use_magic = 1%>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="82%">
    <tr>
      <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
      <td colspan="3" height="3%" bgcolor="#E8EAD0" valign="top"><%include mli_include_menu.html%></td>
      <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
    </tr>
    <form name=myform action="glist.cgi" method=post>
    <tr>
      <td height="97%" width="20%" valign="top"><%include mli_include_nav.html%></td>
      <td bgcolor="#008000" height="97%" width="1" valign="top"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
      <td height="97%" width="80%" valign="top">
        <%if d%> <!-- Show details-->
          <%include mli_include_details.html%>
        <%else%><!-- Show search results-->
          <%include mli_include_results.html%>
        <%endif%>
        <input name='do' value="mli_home" type=hidden />
        <input name='id' value="<%if id%><%id%><%endif%>" type=hidden />
        <input name='fd' value="<%if fd%><%fd%><%endif%>" type=hidden />
        <input name='cd' value="<%if cd%><%cd%><%endif%>" type=hidden />
        <input name='cs' value="<%if cs%><%cs%><%endif%>" type=hidden />
        <input name='ca' value="<%if ca%><%ca%><%endif%>" type=hidden />
        <%hidden_query%>
      </td>
    </tr>
    </form>
  </table>
  <%include include_footer.html%>
<%endif%>
