The function beforesb (form) {
If (form) uname) value="" https://bbs.csdn.net/topics/={
Alert (" account can't be empty!" );
Form. The uname. Focus ();
return false;
}
If (form) upwd) value="" https://bbs.csdn.net/topics/={
Alert (" password cannot be empty!" );
Form. Upwd. Focus ();
return false;
} the if (form upwd. Value. Length & lt; 6) {
Alert (" password cannot be less than six!" );
Form. Upwd. Focus ();
return false;
} the if (form. Upwd. The value! Value)=form. Upwd2. {
Alert (" two inconsistent password ");
Form. Upwd2. Focus ();
return false;
}
return true;
}
</script>