function Evaluate(word, config){
var conf = config || {};
var l = conf.length || 8;
var cont = conf.count || 2;
var key = conf.eye || false;
var msgLength = conf.msgLength || "密码过短!";
var msgCount = conf.msgCount || "种类太少!";
var msg = conf.fun || _msg;
function _msg(msg){
}
if(word.length < l){
msg(msgLength);
return false;
}else{
var check = 0;
if(key){
check = word.match(/[a-z](?![^a-z]*[a-z])|[A-Z](?![^A-Z]*[A-Z])|\d(?![^\d]*\d)|[^a-zA-Z\d](?![a-zA-Z\d]*[^a-zA-Z\d])/g).length;
}else{
check = word.match(/[a-zA-Z](?![^a-zA-Z]*[a-zA-Z])|\d(?![^\d]*\d)|[^a-zA-Z\d](?![a-zA-Z\d]*[^a-zA-Z\d])/g).length;
}
if(check < cont){
msg(msgCount);
return false;
}
}
return true;
}