function ValidateData() { //Submission variable var CanSubmit = false; //Check there is something entered into the word list CanSubmit = ForceEntry("WordList", "Please enter words into the word list."); if (!CanSubmit) return; //Check the length of the word list - if this exceeds 200 characters, //POST the information rather tha using GET //Grab the word list text var wordList = document.getElementById("WordList").value; //If it is longer than 200 characters if (wordList.length > 200) { document.LayoutAcrostic.method = "post"; document.LayoutAcrostic.VarsPosted.value = "true"; } //If fields have been entered correctly, submit the form document.LayoutAcrostic.submit(); } //end function