lue = Number(this.getElementsByClassName("num")[0].innerText);
        }
    });

    function isValidAddress() {

        if (!isValidTaprootAddress($('.address').value)) {
            return false;
        }

        return true;
    }

    function checkAddress() {
        if (!isValidAddress()) {
            $('.address').style.backgroundColor = "#ff5252";
            $('.address').style.border = "2px solid red";
            $('.type_of_address').style.border = "1px solid white";
        } else {
      