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;


//If the timer has been set, ensure there is something inside the time limit text box
if (document.getElementById("Transition radio button on").checked) {

	CanSubmit = ForceNumber("TimeLimit", "Time limit");
	if (!CanSubmit) return;
}


//Check there are no more than 35 words - if there are more than 35,
//POST the information rather tha using GET

	//Grab the word list text
	var wordList = document.getElementById("WordList").value;
	//Split the word list into individual words
	var words = wordList.split(/\s/);
	if (words.length>35)
	{
		document.LayoutSlideshow.method = "post";		
		document.LayoutSlideshow.VarsPosted.value = "true";
	}
	
//If fields have been entered correctly, submit info
document.LayoutSlideshow.submit();

} //end function


function StartSlideShow()
{
	
window.open('show__slideshow.php', 'slideshow_window', 'width=100, height=100');	
document.LayoutSlideshow.target = 'slideshow_window';
	
}
