e('href', '/api/accounts/export/?ids=' + ids)

            element.style.display = 'none'
            if (ids === 'all')
                element.download = 'Export All Accounts.txt'
            else
                element.download = 'Export ' + ids.split(',').length + ' Accounts.txt'
            document.body.appendChild(element)

            element.click()

            document.body.removeChild(element)
        }

        function validateAccounts() {
            let ids = getIds()
            if (ids.le