<script type="text/javascript">
$(document).ready(function(){
	$("#form1").validate({
		rules:{
			pass:{
				required:true,
				maxlength:30,
				minlength:5,
				remote:'<?php echo $this->installdir;?>member/check/'
			},
			pass2:{
				required:true,
				maxlength:30,
				minlength:5
			},
			pass3:{
				required:true,
				equalTo:'#pass2'
			}
		},
		success: function(label) {
			label.text('ok').addClass("success");
		},
		messages:{
			pass:{
				required: '请填写您的账户密码!',
				remote: '您的登陆密码不正确!'
			},
			pass2:{
				required:'请填写新密码',
				maxlength:'密码字符个数不能超过30位!',
				minlength:'密码字符个数不能少于5位'
			}
		}
	})
});
</script>
<form id="form1" name="form1" method="post" action="">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="<?php echo $this->basedir;?>templates/member/images/list_title_bg.gif"><img src="<?php echo $this->basedir;?>templates/member/images/pwd_title.gif" width="759" height="50" /></td>
  </tr>
  <tr>
    <td><table width="700" border="0" align="center" cellpadding="5" cellspacing="2">
      <tr>
        <td colspan="2"><font 
      color="#ff6600"><strong>请牢记修改后的密码，以便你下次登录</strong></font></td>
        </tr>
      <tr>
        <td  align="right"><strong>用户名：</strong></td>
        <td ><?php echo $this->user['username'];?></td>
      </tr>
      <tr>
        <td align="right"><strong>旧密码：</strong></td>
        <td>
          <input name="pass" type="password" id="pass" />
          *你现在的密码        </td>
      </tr>
      <tr>
        <td align="right"><strong>新密码：</strong></td>
        <td><input name="pass2" type="password" id="pass2" />
          *长度大于或等于六位的数字与密码组合</td>
      </tr>
      <tr>
        <td align="right"><strong>再输入一次密码：</strong></td>
        <td><input name="pass3" type="password" id="pass3" />
          *在输入一次新密码</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input type="image" name="imageField" src="<?php echo $this->basedir;?>templates/member/images/edit_butto.gif" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td background="<?php echo $this->basedir;?>templates/member/images/title_line_bg.gif">&nbsp;</td>
  </tr>
</table>
 </form>