<form method="post" action="">
<table class="content" cellspacing="1" cellpadding="1" align="center">
  <tr>
    <td class="cella">Username</td>
    <td class="cellb"><input type="text" name="username" id="username" alt="username" value="{$smarty.post.username}" {$error.username} /></td>
  </tr>
  <tr>
    <td class="cella">Password</td>
    <td class="cellb"><input type="password" name="password" alt="password" value="{$smarty.post.password}" {$error.password} /></td>
  </tr>
  <tr>
    <td colspan="2" class="cella" style="text-align: right;"><button type="submit" name="login" title="Log In" class="link"><img src="images/login.gif" alt="Log In" /></button></td>
  </tr>
  <tr>
    <td colspan="2" class="grey" style="text-align: center;">Cookies must be enabled</td>
  </tr>
</table>
</form>

{literal}
<script type="text/javascript"><!--
  document.getElementById('username').focus();
  -->
</script>
{/literal}