<!--
if(document.images)
{
	var path = "../images/top_nav/";
	var path_games = "../images/games/";
	
	top_org_box1 = new Image();
	top_org_box2 = new Image();
	top_org_box3 = new Image();
	bot_org_box1 = new Image();
	bot_org_box2 = new Image();
	bot_org_box3 = new Image();
	txt_1 = new Image();
	txt_2 = new Image();
	txt_3 = new Image();
	txt_4 = new Image();
	txt_5 = new Image();
	txt_6 = new Image();
	relation_off = new Image();
	match_mkr_off = new Image();
	
	txt_1.src = path + "mid_home.gif";
	txt_2.src = path + "mid_episode.gif";
	txt_3.src = path + "mid_cast.gif";
	txt_4.src = path + "mid_bscenes.gif";
	txt_5.src = path + "mid_photo.gif";
	txt_6.src = path + "mid_games.gif";
	top_org_box1.src = path + "top_org_box1_on.gif";
	top_org_box2.src = path + "top_org_box2_on.gif";
	top_org_box3.src = path + "top_org_box3_on.gif";
	bot_org_box1.src = path + "bot_org_box1_on.gif";
	bot_org_box2.src = path + "bot_org_box2_on.gif";
	bot_org_box3.src = path + "bot_org_box3.gif";
	relation_off.src = path_games + "relation_on.gif";
	match_mkr_off.src = path_games + "match_mkr_on.gif";
	
	function glow(imgName, newMid)
	{
		document[imgName].src = eval(imgName + ".src");
		document['txt'].src = eval(newMid + ".src");
		document['bot_org_box3'].src = path + "bot_org_box3.gif"
	}
	function glowB(imgName)
	{
		document[imgName].src = eval(imgName + ".src");
	}
	function no_glow(imgName)
	{
		document[imgName].src = path + imgName + ".gif";
		document['txt'].src = path + "mid_games.gif"
		document['bot_org_box3'].src = path + "bot_org_box3_on.gif"
	}
	function no_glowB(imgName)
	{
		document[imgName].src = path_games + imgName + ".gif";
	}
}
//this function decides which actor will most likely be the condidate for the user
function Candidate()
{
var total = 0;
total = (document.forms['quiz_two'].elements['one_set'].value * 1) 
		+ (document.forms['quiz_two'].elements['two_set'].value * 1)
		+ (document.forms['quiz_two'].elements['three_set'].value * 1)
		+ (document.forms['quiz_two'].elements['four_set'].value * 1)
		+ (document.forms['quiz_two'].elements['five_set'].value * 1)
		+ (document.forms['quiz_two'].elements['six_set'].value * 1)
		+ (document.forms['quiz_two'].elements['seven_set'].value * 1)
		+ (document.forms['quiz_two'].elements['eight_set'].value * 1)
		+ (document.forms['quiz_two'].elements['nine_set'].value * 1)
		+ (document.forms['quiz_two'].elements['ten_set'].value * 1);

	if((total * 1) <= 16)
	{
		document.location = "no_surpise.html";
	}
	else if(((total * 1) >= 17) && ((total * 1) <= 23))
	{
		document.location = "your_not_sure.html";
	}
	else if(((total * 1) >= 24) && ((total * 1) <= 30))
	{
		document.location = "totaly_love.html";
	}
}
//this function set the hidden field associated with question to the value being picked by the user
//espects elements half name and a value with which to place inside of it
function mk_picked(element, val)
{
	document.forms['quiz_two'].elements[element + "_set"].value = val;
}
//this function checks every form elements and alerts an error if any had been missed
function chk_form()
{
	if(document.quiz_two.one_set.value == "0")
	{ 
		alert("Please answer question number one.");
		return false;
	}
	else if(document.quiz_two.two_set.value == "0")
	{ 
		alert("Please answer question number two.");
		return false;
	}
	else if(document.quiz_two.three_set.value == "0")
	{
		alert("Please answer question number three.");
		return false;
	}
	else if(document.quiz_two.four_set.value == "0")
	{
		alert("Please answer question number four.");
		return false;
	}
	else if(document.quiz_two.five_set.value == "0")
	{
		alert("Please answer question number five.");
		return false;
	}
	else if(document.quiz_two.six_set.value == "0")
	{
		alert("Please answer question number six.");
		return false;
	}
	else if(document.quiz_two.seven_set.value == "0")
	{
		alert("Please answer question number seven.");
		return false;
	}
	else if(document.quiz_two.eight_set.value == "0")
	{
		alert("Please answer question number eight.");
		return false;
	}
	else if(document.quiz_two.nine_set.value == "0")
	{
		alert("Please answer question number nine.");
		return false;
	}
	else if(document.quiz_two.ten_set.value == "0")
	{
		alert("Please answer question number ten.");
		return false;
	}
	else
	{
		Candidate();
		return false;
	}
}
//-->