TML = "Password length must be at least 6 characters";
             return false;
          }

        //maximum length of password validation
          if(pw.length > 15) {
             document.getElementById(msg_key).innerHTML = "Password length must not exceed 15 characters";
             return false;
          }

          //if(action == "signup") {
          //    return confirmPassword(action);
          //}

          document.getElementById(msg_key).innerHTML = "";
          return true;
    }

  