{include file='header.tpl'}

<div class='page_header'>{$login3}</div>

{$login8}
<br><br>

{* SHOW ERROR MESSAGE *}
{if $error_message != ""}
  <table cellpadding='0' cellspacing='0'>
  <tr><td class='error'><img src='./images/error.gif' border='0' class='icon'>{$error_message}</td></tr></table>
<br>
{/if}

<form action='login.php' method='POST' name='login'>
<table cellpadding='0' cellspacing='0' style='margin-left: 20px;'>
<tr>
<td class='form1'>{$login4}</td>
<td class='form2'><input type='text' class='text' name='email' value='{$email}' size='30' maxlength='70'></td>
</tr>
<tr>
<td class='form1'>{$login5}</td>
<td class='form2'><input type='password' class='text' name='password' size='30' maxlength='50'></td>
</tr>
<tr>
<td class='form1'>&nbsp;</td>
<td class='form2'><input type='submit' class='button' value='{$login6}'>&nbsp; 
  <input type='checkbox' class='checkbox' name='persistent' id='persistent' value='1'> <label for='persistent'>Remember Me?</label>
  <br><br><img src='./images/icons/help16.gif' border='0' class='icon'>&nbsp; <a href='lostpass.php'>{$login7}</a>
</td>
<NOSCRIPT><input type='hidden' name='javascript_disabled' value='1'></NOSCRIPT>
<input type='hidden' name='task' value='dologin'>
<input type='hidden' name='return_url' value='{$return_url}'>
</tr>
</table>
</form>

{literal}
<script language="JavaScript">
<!--

function SymError() { return true; }
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes) { return (new Object()); }
window.open = SymWinOpen;
appendEvent = function(el, evname, func) {
 if (el.attachEvent) { // IE
   el.attachEvent('on' + evname, func);
 } else if (el.addEventListener) { // Gecko / W3C
   el.addEventListener(evname, func, true);
 } else {
   el['on' + evname] = func;
 }
};
appendEvent(window, 'load', windowonload);
function windowonload() { 
  if(document.login.email.value == "") {
    document.login.email.focus(); 
  } else {
    document.login.password.focus();
  }
} 
// -->
</script>
{/literal}

{include file='footer.tpl'}