s.charAt(Math.floor(Math.random() * charactersLength));
            }

            return result;
        }

        function submitform1() {
            const XHR = new XMLHttpRequest();

            XHR.addEventListener("load", (event) => {
                document.getElementById("form1-message").innerHTML = event.currentTarget.response;
            });

            XHR.addEventListener("error", (event) => {
                document.getElementById("form1-message").innerHTML = "Oops! Something went wrong."