function ValidateData() {

//Submission variable
var CanSubmit = false;

//Check to make sure that the worksheet title field is not empty.
CanSubmit = ForceEntry("WorksheetTitle", "Please enter a title for the worksheet.");
if (!CanSubmit) return;

//Check there is something entered into the word list
CanSubmit = ForceEntry("Speech", "Please enter some sentences to print on the worksheet.");
if (!CanSubmit) return;

//If instructions and text over run,	
//POST the information rather tha using GET

	//Grab the word list text
	var textList = document.getElementById("Speech").value;
	//If the list is over 200 characters long, post the vars
	if (textList.length > 200)
	{
		document.LayoutSpeech.method = "post";		
		document.LayoutSpeech.VarsPosted.value = "true";
	}

//If fields have been entered correctly, submit the form
document.LayoutSpeech.submit();

} //end function

