<script language="javascript" src="{$jspath}/jform.js" type="text/javascript"></script>

{if $login_error_true==1}
<strong>{#Error#}</strong>
<br />
<small>{#WrongLoginData#}</small>
<br />
<br />

{/if}
{literal}
<script language="javascript" type="text/javascript">
<!--
$(document).ready(function() { 
    var options = { 
        target:    '#login_form_users',   
        url:       'index.php?p=ajaxlogin',         
        timeout:   3000 
    }; 
 
    $('#myForm1').submit(function() { 
        $(this).ajaxSubmit(options); 
        return false; 
    }); 
}); 
-->
</script>
{/literal}
<form  method="post" action="index.php?p=login" name="login" id="smyForm1">
<label for="login_email_r">{#Email#}&nbsp;</label>
<div><input class="input_fields" type="text" name="login_email" id="login_email_r" style="width:130px" /></div>
<label for="login_pass_r">{#Pass#}&nbsp;</label>
<div><input class="input_fields" type="password" name="login_pass" id="login_pass_r" style="width:130px" /></div>
<label><input name="staylogged" type="checkbox" id="staylogged_r" value="1" checked="checked" class="absmiddle" /><span {popup text=$config_vars.PassCookieT} class="tooltip">{#PassCookieHelp#}</span></label>
<div>
<input type="hidden" name="p" value="login" />
<input type="hidden" name="SID" value="{$sess}" />
<input type="hidden" name="area" value="{$area}" />
<input type="hidden" name="backurl" value="{redir|base64encode}" id="bu" />
<input type="submit" class="button" value="{#Login_Button#}" id="button_login" />
<br />
<br />
{if get_active('Register')}
{#Arrow#}<a href="index.php?lang={$lang}&amp;p=register&amp;area={$area}">{#RegNew#}</a><br />
{/if}
{#Arrow#}<a href="index.php?p=pwlost">{#PassLost#}</a>
</div>


</form>