<script type="text/javascript" src="includes/jscript/pwstrength.js"></script>

{if $invalidlink}

	<div class="notice notice-error">
		<div class="inside">
			<p>{$invalidlink}</p>
		</div>
	</div>

{elseif $success}

	<div class="notice notice-success">
		<div class="inside">
			<p>{$LANG.pwresetvalidationsuccess}</p>
		</div>
	</div>

{else}

{if $errormessage}

	<div class="notice notice-error">
		<div class="inside">
			<p>{$errormessage}</p>
		</div>
	</div>
  
{/if}

<form class="form-horizontal" method="post" action="{$smarty.server.PHP_SELF}?action=pwreset">
<input type="hidden" name="key" id="key" value="{$key}" />

<p>{$LANG.pwresetenternewpw}</p>

		<div class="feildset">
		
			<div class="col1">
			
				<div>
					<label>
						<span>{$LANG.newpassword}: ({$LANG.required})</span>
						<input type="password" name="newpw" id="newpw" autofocus="autofocus" placeholder="{$LANG.resetpassword_new}" />
					</label>
				</div>	
				
				<div>
					<label>
						<span>{$LANG.confirmnewpassword}: ({$LANG.required})</span>
						<input type="password" name="confirmpw" id="confirmpw" placeholder="{$LANG.resetpassword_confirm}" />
					</label>
				</div>							
			
			</div>
			
		</div>

<p class="center"><input type="submit" value="{$LANG.clientareasavechanges}" class="button1 color2" /> <input type="reset" value="{$LANG.cancel}" class="button1 color1" /></p>

</form>

{/if}