
function validatePass()
 var minLength = 6;
 var pass1 = document.UpPass.NePa.value
 var pass2 = document.UpPass.VePa.value

 if (pass1 == '' || pass2 == '') {
  alert('Please enter your password twice.');
  return false;
  }

 if (document.UpPass.Pass1.value.length < minLength) {
  alert('The password needs to be ' + minLength + ' caracters in length.')
  return false;
  }

 if (pass1!=pass2) {
  alert('Both the New password and the Verify password need to be the same please try again.')
  return false;
  }

 else {
  return true;
  }
 }
