<?php
#
# Set fields class to none
#
if ($inquiry!='') { $class = 'inquiry'; } else { $class = 'form'; }
for($i=1; $i<=6; $i++) { $fld_class[$i] = $class; }
if (isset($err_i)) $fld_class[$err_i] = 'rev';
?>
<form name="camaleo" method="post" action="<?=$_SERVER[PHP_SELF]?>">
<h3><?=F_USRPNL_STR7?></h3>
<table class="form_table" border="0">
<tr><td colspan="2"><?=F_USRPNL_STR10?> <input class="<?=$fld_class[5]?>" type="password" name="password" value="" size="20" maxlength="10"></td></tr>
<tr><td colspan="2"><hr id="line" style="height:1px; width:100%;" /></td></tr>
<tr>
<td><?=F_USRPNL_STR8?></td>
<td><?=F_USRPNL_STR9?></td>
</tr>
<tr>
<td><input class="<?=$fld_class[3]?>" type="password" name="password1" value="<?=$passw_form1?>" size="20" maxlength="10"></td>
<td><input class="<?=$fld_class[6]?>" type="password" name="password2" value="<?=$passw_form2?>" size="20" maxlength="10"></td>
</tr>
<tr><td colspan="2" align="center"><font class="color0"><?=F_USRPNL_STR11?></font></td></tr>
<tr><td colspan="2"><hr id="line" style="height:1px; width:100%;" /></td></tr>
</table>
<center>
<?=$feedback_str?><br />
<input class="button" type="submit" name="submit" value="<?=B_SAVE?>">
<input class="button" type="button" value="<?=B_BACKH?>" title="<?=_BACKPG_?>" onClick="javascript:window.location='ParamForm.php?rrn=<?=$USER_RRN?>&id=userpref'; return false;" target="main" />
</center>
</form>
<?php
switch($err_i)
{
case 3: ?><script>document.forms['camaleo'].password1.focus();</script><?php break;
case 5: ?><script>document.forms['camaleo'].password.focus();</script><?php break;
case 6: ?><script>document.forms['camaleo'].password2.focus();</script><?php break;
}
?>