
	function FUNbothchoices()
		{
		if (parent.prechoices.document.all.program[0].checked && !parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit1.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[0].checked && parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit1a.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[1].checked && !parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit2.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[1].checked && parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit2a.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[2].checked && !parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit3.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[2].checked && parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit3a.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[3].checked && !parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit4.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[3].checked && parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit4a.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[4].checked && !parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit5.html";
			FUNpreviewprint();
			}
		else if (parent.prechoices.document.all.program[4].checked && parent.prechoices.document.all.answers.checked)
			{
			parent.precontent.location.href = "unit5a.html";
			FUNpreviewprint();
			}
		else
			{
			}
		}

	function FUNpreviewprint()
		{
		parent.printoption.location.href = "ipre_print.html";
		parent.prechoices.location.href = "ipre_print_choices.html";
		}

	function FUNgoback()
		{
		history.back();
		history.back();
		history.back();
		}

	function FUNlevelchoices()
		{
		if (parent.prechoices.document.all.qlevel[0].checked)
			{
			parent.document.all.thelevel.value = "Basic";
			}
		else if (parent.prechoices.document.all.qlevel[1].checked)
			{
			parent.document.all.thelevel.value = "Proficient";
			}
		else if (parent.prechoices.document.all.qlevel[2].checked)
			{
			parent.document.all.thelevel.value = "Advanced";
			}
		else
			{
			}
		}

	function FUNupdatedetails()
		{
		parent.document.all.schoolname.value = schoolname.value;
		parent.document.all.studentname.value = studentname.value;
		parent.document.all.teachername.value = teachername.value;
		parent.document.all.period.value = period.value;
		parent.document.all.datetime.value = datetime.value;
		parent.document.all.testtitle.value = testtitle.value;
		parent.document.all.testtime.value = testtime.value;
		history.back();
		}

	function FUNloaddetails()
		{
		parent.precontent.location.href = "icover.html";
		}

	function FUNdetermineit()
		{
		if (parent.document.all.thelevel.value == "Basic")
			{
			parent.document.all.thepage.value = aquestion;
			}
		else if (parent.document.all.thelevel.value == "Proficient")
			{
			parent.document.all.thepage.value = bquestion;
			}
		else if (parent.document.all.thelevel.value == "Advanced")
			{
			parent.document.all.thepage.value = cquestion;
			}
		}
