t("-----"+name.length);if(name.length<2||name.length>10){document.getElementById("errName").style.display="block";flag1=false;9}else{document.getElementById("errName").style.display="none";flag1=true;}}//判断密码是否有效functioncheckPwd(){//判断密码是否有效,首先要获取到userPwd的值varpwd=document.register.userPwd.value;//alert("-----"+password.length);if(pwd.length<5||pwd.length>10){flag2=false;document.getElementById("errPwd").style.display="block";}else{document.getElementById("errPwd").style.display="none";flag2=true;}}//判断密码是否一致functioncheckPwd1(){//判断密码是否一致,首先要获取到密码的值varp=document.register.userPwd.value;varp1=document.register.userPwd1.value;if(p==p1){//alert("密码一致");flag3=true;document.getElementById("errPwd1").style.display="none";}else{flag3=false;document.getElementById("errPwd1").style.display="block";}}