<?do function submit() {$arg.ok($("login-name").value, $("login-password").value, $("login-keep").checked)};?>
<table width="100%">
  <tr>
    <td>
      <label for="login-name">Username:</label>
      <input type="text" id="login-name" style="width: 18em;"/>
      <?event enter submit();?>
      <?run $node.focus();?>
      <br/>
      <label for="login-password">Password:</label>
      <input type="password" id="login-password" style="width: 18em;"/>
      <?event enter submit();?>
      <br/>
      <input type="checkbox" id="login-keep"/> <label for="login-keep">Stay logged in</label>
    </td>
    <td width="1">
      <span style="visibility: hidden" id="login-loading"><?msgthrob?></span>
    </td>
    <td class="buttons">
      <button>OK</button><?event click submit();?>
      <button>Cancel</button><?event click $arg.cancel();?>
    </td>
  </tr>
</table>
