<!-- Hide Code
function makeStory() {
	var writeIt = new Boolean(true);	// Indicator that all info is entered
	for (var i=0; i<4; i++) {	// Loop through the text boxes
		if (document.getInfo.elements[i].value.length == 0) {	// If empty
			alert("You did not fill in all the boxes");	// Put up alert
			writeIt = false;		// Set indicator
			break;				// Terminate loop
		}
	}
	if (writeIt) {			// If indicator true, write the new window
// Get values from the form text boxes
	var no1 = document.getInfo.no1.value;
      var no2 = document.getInfo.no2.value;
	var person1 = document.getInfo.person1.value;
	var person2 = document.getInfo.person2.value;
	var person3 = document.getInfo.person3.value;
	var person4 = document.getInfo.person4.value;
	var person5 = document.getInfo.person5.value;
	var song1 = document.getInfo.song1.value;
	var song2 = document.getInfo.song2.value;
	var song3 = document.getInfo.song3.value;
	var song4 = document.getInfo.song4.value;
// Open the new window
	storyWin = window.open("", "story",'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=500,height=480,screenX=240,screenY=150,left=240,top=150');
/*	
The HTML code is stored in the variable story
Wherever an input value is needed in the story, the variable name is used
*/
	var story = "<HTML><HEAD><TITLE>Who Do You Love?</TITLE></HEAD>\n<BODY BGCOLOR=#ffffff>\n<TABLE bgcolor=white align=center cellpadding=10 border=1><tr><td>";
	story = story + "You must tell <b>" + no2 + "</b> people about this game in <b>" + no1 + "</b> days in order to make your wish come true.<br><br><b>" + person1 + "</b> is the one that you love.<br><br><b>" + person5 + "</b> is one you like but can't work out.<br><br>You care most about <b>" + person2 + "</b>.<br><br><b>" + person3 + "</b> is the one who knows you very well.<br><br><b>" + person4 + "</b> is your lucky star.<br><br><b>" + song1 + "</b> is the song that matches with <b>" + person1 + "</b>.<br><br><b>" + song2 + "</b> is the song for <b>" + person5 + "</b>.<br><br><b>" + song3 + "</b> is the song that tells you most about your mind.<br><br>And <b>" + song4 + "</b> is the song telling how you feel about life!";
	story = story + "</td></tr></table></BODY></HTML>";
	storyWin.document.writeln(story);	// write the HTML to the window
	storyWin.document.close();		// close out the input stream
	storyWin.focus();				// bring the window to the front
	}
}
// End hide -->
