<?php TPL::output('global/header_landing.tpl.htm'); ?>

<script type="text/javascript">
	$(document).ready(function () {
		$('#header_action').append('Reset password');
	});
</script>

<form id="active_form" name="fpw_form" method="post" action="account/ajax/find_password_modify/">
<input type="hidden" name="active_code" value="<?php echo $_GET['key']; ?>"/>
<div class="tny-login login_bg_02">
  <ul class="loging register">
    <li>
      <input type="text" class="login_txt" id="login_password_txt" tabindex="3" title="Password" value="Password"/>
      <input type="password" name="password" title="Password" id="login_password" class="login_txt tny-hide">
      <span class="hide"></span> </li>
    <li>
      <input type="text" class="login_txt" id="login_password2_txt" tabindex="3" title="Re-enter password" value="Re-enter password"/>
      <input type="password" name="re_password" title="Password" id="login_password2" class="login_txt tny-hide">
      <span class="hide"></span> </li>
    <li>
      <input type="text" class="login_txt auth_code" id="authCode" name="seccode_verify" title="Verification code" value="Verification code" />
      <em class="auth_img"><img id="seccode" onclick="this.src = GET_BASE_URL + '/account/captcha/rnd-' + Math.floor(Math.random() * 10000);" src="" /></em> <span class="hide"></span> </li>
    <li id="global_err" class="tny-hide">
      <p class="global-err tny-small tny-err_bg"><em class="e"></em><span id="glo_Err">Account number or password is incorrect, please try again</span></p>
    </li>
    
    <li><a href="javascript:;" onclick="ajax_post($('#active_form'), _login_form_processer);" class="login_sub tny-cl_06 tny-fb_14 tny-right">Reset password</a></li>
  </ul>
</div>
</form>

<script type="text/javascript" src="<?php echo GET_STATIC_URL; ?>/js/app/login.js"></script>
<script type="text/javascript">
		if ($.isNull($('#seccode'))){
			$('#seccode').click();
		}
	
	$.login.password({
		txt:'#login_password2_txt',
		pw:'#login_password2',
		txtval:'Re-enter password'
	});
	$.login.password({
		txt:'#login_password_txt',
		pw:'#login_password'
	});
	
	$.register.s.authCode();
</script>

<?php TPL::output('global/footer_blank.tpl.htm'); ?>