return false;
}
else
{
oldpasswordFlag = 0;
$("#oldpsMsg").html("");
}
}
function check_newPassword()
{
$("#oldpsMsg").html("");
$("#repsMsg").html("");
$("#msgSpan").html("");
$("#repeatPassword").val("");
var newPS = $.trim($("#newPassword").val());
if(newPS == null || newPS == "")
{
newpasswordFlag=1;
$("#newpsMsg").html("<span class='tips'>请输入新密码,由6-16位字符组成!</span>");
$(this).focus();
return false;
}
//var re=/^[A-Za-z0-9_-]{6,16}$/;
var re=/^.{6,16}$/;
if (newPS.replace(/[^x00-xff]/g, "**").length <6 || newPS.replace(/[^x00-xff]/g, "**").length > 16)
{
newpasswordFlag = 1;
$("#newpsMsg").html("<span class='tips'>新密码长度不正确</span>");
$(this).focus();
return false;
}
if(!re.test(newPS))
{
newpasswordFlag = 1;
$("#newpsMsg").html("<span class='tips'>新密码长度不正确</span>");
$(this).focus();
return false;
}else
{
newpasswordFlag = 0;
$("#newpsMsg").html("");
}
}
function check_repeatPassword()
{
$("#oldpsMsg").html("");
$("#newpsMsg").html("");
$("#msgSpan").html("");
if( $("#repeatPassword").val()==null || $.trim($("#repeatPassword").val()) =="")
{
$("#repsMsg").html("<span class='tips'>请输入重复新密码</span>");
$(this).focus();
newpasswordFlag = 1;
return false;
}else
if ( $.trim($("#repeatPassword").val()) != $.trim($("#newPassword").val()))
{
newpasswordFlag = 1;
$("#repsMsg").html("<span class='tips'>两次密码输入的不一致!</span>");
$(this).focus();
return false;
}else
{
newpasswordFlag = 0;
$("#repsMsg").html("");
}
}
function check_cardNum()
{
$("#vcodeMsg").html("");
$("#psMsg").html("");
$("#strmsg").hide();
var cardnum = $.trim( $("#cardNum").val());
if(cardnum == null || cardnum == "")
{
$("#numMsg").html("<span class='tips'>请输入卡号</span>");
cardnumFlag = 1;
return false;
}else
{
$("#numMsg").html("");
cardnumFlag=0;
}
}
function check_passWord()
{
$("#vcodeMsg").html("");
$("#numMsg").html("");
$("#strmsg").hide();
var password = $.trim( $("#passWord").val());
if(password == null || password == "" )
{
passwordFlag = 1;
$("#psMsg").html("<span class='tips'>请输入密码</span>");
return false;
}else
{
passwordFlag = 0;
$("#psMsg").html("");
}
}
function check_vcode()
{
$("#vcodeMsg").html("");










