<!-- 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 person = document.getInfo.person.value;
      var animal = document.getInfo.animal.value;
	var action = document.getInfo.action.value;
	var size = document.getInfo.size.value;
	var fence = document.getInfo.fence.value;
	var table = document.getInfo.table.value;
	var cup = document.getInfo.cup.value;
	var cup2 = document.getInfo.cup2.value;
	var water = document.getInfo.water.value;
	var water2 = document.getInfo.water2.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=400,screenX=300,screenY=150,left=300,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>Relationship Psychology Quiz</TITLE><link rel='stylesheet' type='text/css' href='popup.css'/></HEAD>\n<BODY BGCOLOR=white>\n";
	story = story + "<div class='c8'><div class='c9'>The answers given to the questions have been shown to have a relevance to values and ideals that we hold in our personal lives. The analysis follows:<br><br>1. You are walking in the woods with <b>" + person + "</b>.  <b>" + person + "</b> is the most important person in your life.<br><br>2. You see a <b>" + animal + "</b>. The size of the animal is representative of your perception of the size of your problems.<br><br>3. You <b>" + action + "</b> with the animal? The severity of the interaction you have with the animal is representative of how you deal with your problems. (passively/aggressively)<br><br>4. You walk deeper in the woods. You enter a clearing and before you is your Dream House. It is <b>" + size + "</b>. The size of your dream house is representative of the size of your ambition to resolve your problems.<br><br>5. Is your dream house surrounded by a fence? You answered <b>" + fence + "</b>. No fence is indicative of an open personality. People are welcome at all times. The presence of a fence indicates a closed personality. You'd prefer people not to drop by unannounced.<br><br>6. You enter the house. You walk to the dining area and see the dining table. <b>" + table + "</b> are on and around the table. If your answer did not include food, people, or flowers, then you are generally unhappy.<br><br>7. You exit the house through the back door. Lying in the grass is a cup. The cup is made of <b>" + cup + "</b>. The durability of the material with which the cup is made of is representative of the perceived durability of your relationship with <b>" + person + "</b>. For example, styrafoam, plastic, and paper are all disposable, styrofoam, paper and glass are not durable, and metal and plastic are durable.<br><br>8. You <b>" + cup2 + "</b>. Your disposition of the cup is representative of your attitude towards <b>" + person + "</b>.<br><br>9. You walk to the edge of the property, where you find yourself standing at the edge of a <b>" + water + "</b>. The size of the body of water is representative of the size of your sexual desire.<br><br>10. You cross the " + water + " by <b>" + water2 + "</b>. How wet you get in crossing the water is indicative of the relative importance of your sex life.<br></div></div>";
	story = story + "</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 -->
