var checkInfo = {};

checkInfo.checkMobileNo = function() {
    let mobileNo = document.getElementById('mobileNo').value;
    let regexMobileNo = /^1[3-9]\d{9}$/;
    return regexMobileNo.test(mobileNo);
}

checkInfo.checkPassword = function() {
    let password = document.getElementById('password').value;
    let regexPassword = /^[A-Za-z0-9\W_]{6,20}$/;
    let isValidPassword = regexPassword.test(password);
    let confirmPassword = document.getElementById('confirmPassword').value;
    return isValidPassword && (password === confirmPassword);
}