function _checkpassword( passwd ) { if( passwd.length <6 ) { alert( "密码长度不能少于6个字符!" ); return false; } return true; }