I'm taking a wild guess at what you want....
You want a JavaScript that takes a username and a password. If they're the same, tell the user the security level is low.
Do you also want it to detect if it is a strong password? (i.e. has symbols, numbers and letters)
You'll need to explain futher.
Snib
<><