$(document).ready(function() {
$("#view_button3").bind("mousedown touchstart", function() {
$("#password").attr("type", "text");
}), $("#view_button3").bind("mouseup touchend", function() {
$("#password").attr("type", "password");
}), $("#view_button4").bind("mousedown touchstart", function() {
$("#verifypassword").attr("type", "text");
}), $("#view_button4").bind("mouseup touchend", function() {
$("#verifypassword").attr("type", "password")
})
});
function passwordChecker(){
$('#verifypassword').val('');
$('#message1').html(''); $('#message8').html(''); $('#message10').html('');
$('#message').html('');$('#message2').html('');$('#message3').html('');$('#message4').html('');$('#message5').html('');$('#message6').html('');$('#message7').html('');
if($('#password').val().length>=4){
if(newValPassPoilcy()===true ){
$('#message').css('color','green');
$('#message').html('Although looks like a good password, try to make it more stronger');
if($('#password').val().length>=9){
$('#message').html('');
$('#message1').html('');
}
return true;
}
}
}
function NumAndWordRep(){
var password = $('#password').val().toLowerCase();
if(password.match(/(.)\1\1/)){
$('#message7').css('color','red');
$('#message7').html('Your Password cannot contain Character or Number repetition.');
return false;
}