JavaScript to Validate :Password cannot be a substring of the EmailID
<p>I need a javascript to validate password field against emailID textBox where user types emailID</p>

<p>Password Validation rule : Password cannot be a substring of the EmailID Used</p>

<p>Example Email :alex123@yahoo.com
Example following passwords  are invalid as they are substrings of the above emailID</p>

<p>1) alex123 --invalid
2) alex1234 --is invalid
3) @yahoo.com ---invalid
4) passrobin --valid</p>
