    function removePattern(id) {
        document.getElementById(id).removeAttribute("pattern")
    }

    function checkValues() {
        let e = document.getElementById('security-type');
        let type = e.options[e.selectedIndex].value
        switch (type) {
            case "SHARE":
            case "ASSET":
            case "CURRENCY":
                erase('accrued-interest')
            // no break
            case "BOND":
                erase('price-tick')
                erase('price-tick-valu