Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Check_Passwords(){
- var pass1 = document.getElementById('RegisterPassword').value;
- var pass2 = document.getElementById('RegisterPassword2').value;
- if(pass1.length > 3){
- if(pass2.length > 3){
- if(pass1 != pass2){
- document.getElementById('RegisterPasswordLabel').innerHTML = "<font color='red'>New Password: Dont Match</font>";
- document.getElementById('RegisterPasswordLabel2').innerHTML = "<font color='red'>Re- Password: Dont Match</font>";
- }
- else
- {
- document.getElementById('RegisterPasswordLabel').innerHTML = "<font color='green'>New Password: Perfect</font>";
- document.getElementById('RegisterPasswordLabel2').innerHTML = "<font color='green'>Re- Password: Perfect</font>";
- }
- }
- else{
- document.getElementById('RegisterPasswordLabel2').innerHTML = "<font color='red'>New Password: Short</font>";
- }
- }
- else {
- document.getElementById('RegisterPasswordLabel').innerHTML = "<font color='red'>New Password: Short</font>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement