This demonstrates an addition to the JavaScript String class prototype that validates a password. A mediocre password should have at least alphabetical AND numerical characters. This method requires at least that. But, that's seriously not enough and systems that don't allow at least ONE non-alphanumeric character are flawed, IMHO.
You can tell this method to require a minimum length and you can tell it to make sure there is at least one non-alphanumeric character.
String.isGoodPassword( minLength:Number, requireNonAlphaNumeric:Boolean ):Boolean
Enter a test password:
(length: 0)
Minimum length:
Check this to require at least one non-alphanumeric character