//第一次输入密码
function test2(){
var pwd = document.getElementById('pwd').value;
var span2 = document.getElementById('span2');
if(pwd.length<6){
span2.innerHTML = "不能小于6位!";
}else if(pwd!="" || pwd!=NULL && pwd.length>=6){
span2.innerHTML = "";
}
}
//第二次输入密码
function test3(){
var pwd = document.getElementById('pwd').value;
var pwd2 = document.getElementById('pwd2').value;
var span3 = document.getElementById('span3');
if(pwd2 != pwd){
span3.innerHTML = "密码不一致!";
}else if(pwd2!="" || pwd2!=NULL && pwd2.length>=6){
span3.innerHTML = "";
}
}