/*!
 * 密码强度检验插件
 * @copyright (c) JSPGen.com
 * @version 1.0
 */
;(function($){$.fn.passwords=function(pw){var $pws=$(this);var $pw=$(pw);$pw.blur(function(){var streng=checkStreng($(this).val());switch(streng){case 1:$pws.removeClass();$pws.addClass('passwords').addClass('streng1');break;case 2:$pws.removeClass();$pws.addClass('passwords').addClass('streng2');break;case 3:$pws.removeClass();$pws.addClass('passwords').addClass('streng3');break;default:$pws.removeClass();$pws.addClass('passwords');};});}
var checkStreng=function(v){var mode=0,modes=0;for(i=0;i<v.length;i++){mode|=charMode(v.charCodeAt(i));}
modes=charModes(mode);if(v.length>=10)modes++;return modes;}
var charMode=function(c){if(c>=48&&c<=57){return 1;}else if(c>=65&&c<=90){return 2;}else if(c>=97&&c<=122){return 4;}else{return 8;}};var charModes=function(m){var modes=0;for(i=0;i<3;i++){if(m&1)modes++;m>>>=1;}
return modes;};})(jQuery);