<h2><tmpl_var name="login_txt"></h2>
<p><tmpl_var name="list_desc_txt"></p>

<div class="panel panel_login">

    <tmpl_if name="msg">
        <div id="OKMsg"><p><tmpl_var name="msg"></p></div>
    </tmpl_if>
    <tmpl_if name="error">
        <div id="errorMsg"><h3>ERROR</h3><ol><li><tmpl_var name="error"></li></ol><br /><a href="#" onclick="loadContent('login/password_reset.php');">{tmpl_var name='pw_lost_txt'}</a></div>
    </tmpl_if>

    <div class="pnl_formsarea">
        <fieldset class="inlineLabels"><legend>{tmpl_var name='login_txt'}Login</legend>
            <div class="ctrlHolder">
                <label for="username">{tmpl_var name='username_txt'}</label>
                <input name="username" id="username" value="" size="30" maxlength="255" type="text" class="formLengthEmailUser"  onkeypress="if (event.keyCode && event.keyCode == 13) {submitLoginForm('pageForm'); return false;};" />
            </div>
            <div class="ctrlHolder">
                <label for="passwort">{tmpl_var name='password_txt'}</label>
                <input name="passwort" id="passwort" value="" size="30" maxlength="255" type="password" class="formLengthEmailUser"  onkeypress="if (event.keyCode && event.keyCode == 13) {submitLoginForm('pageForm'); return false;};" />
            </div>
            <tmpl_if name="session_timeout" op=">" value="0">
				<tmpl_if name="session_allow_endless" value="y">
            <div class="ctrlHolder">
                <label for="passwort">{tmpl_var name='stay_logged_in_txt'}</label>
                <input name="stay" id="stay" value="1" type="checkbox" onkeypress="if (event.keyCode && event.keyCode == 13) {submitLoginForm('pageForm'); return false;};" />
            </div>
				</tmpl_if>
            </tmpl_if>
        </fieldset>

        <input type="hidden" name="s_mod" value="login" />
        <input type="hidden" name="s_pg" value="index" />

        <div class="buttonHolder buttons">
            <button class="positive iconstxt icoKey" type="button" value="{tmpl_var name='add_new_record_txt'}" onclick="submitLoginForm('pageForm');"><span>{tmpl_var name='login_button_txt'}</span></button>
            <button class="negative iconstxt icoKey" type="button" value="{tmpl_var name='pw_lost_txt'}" onclick="loadContent('login/password_reset.php');"><span>{tmpl_var name='pw_lost_txt'}</span></button>
        </div>
    </div>

</div>
<script language="JavaScript" type="text/javascript">
	$('#username').closest('form').attr('autocomplete','on');
</script>