function form_user_login_header( form_redirect ) {
var the_result =
'<form action="/user/login-action.php" method="post" name="header_login_form" id="header_login_form" class="login" onsubmit="return site_check_login_form(this)">' +
'<div class="input">запомнить <input type="checkbox" name="the_remember" value="1"></div>' +
'<div class="input">логин <input class="text" type="text" name="the_login" value="" size="22" maxlength="22"></div>' +
'<div class="input">пароль <input class="text" type="password" name="the_password" value="" size="22" maxlength="22"></div>' +
'<div class="input-last"><a href="#" onclick="if ( site_check_login_form(document.getElementById(\'header_login_form\')) ) document.getElementById(\'header_login_form\').submit()">вход</a> | <a href="/user/register.php">регистрация</a></div>' +
'<input type="hidden" name="redirect" value="'+escape(form_redirect)+'"><input type="hidden" name="the_lars" id="the_lars" value=""><input type="hidden" id="the_submit_button" value=""><input type="image" src="/i/spacer.gif"></form>';
document.write(the_result);
}







