<!-- hide code from non-JS browsers
function ResetFrm()
{
	//remove dolls picture
	document.KHWives.ques1.src = "images/England_qz_tn.jpg";
	document.KHWives.ques2.src = "images/England_qz_tn.jpg";
	document.KHWives.ques3.src = "images/England_qz_tn.jpg";
	document.KHWives.ques4.src = "images/England_qz_tn.jpg";
	document.KHWives.ques5.src = "images/England_qz_tn.jpg";
	document.KHWives.ques6.src = "images/England_qz_tn.jpg";
	
	//remove check or wrong img
	document.KHWives.CkAns1.src = "images/qz-trans.gif";
	document.KHWives.CkAns2.src = "images/qz-trans.gif";
	document.KHWives.CkAns3.src = "images/qz-trans.gif";
	document.KHWives.CkAns4.src = "images/qz-trans.gif";
	document.KHWives.CkAns5.src = "images/qz-trans.gif";
	document.KHWives.CkAns6.src = "images/qz-trans.gif";
	
}

function IsSelected()
{
	if(document.KHWives.sel0.value == "0")
		{
		alert("  No name selected\n Please make a select one.");
		document.KHWives.CkAns1.src = "images/qz-asteric.gif";
		}
	
	if(document.KHWives.sel1.value == "0")
		{
		document.KHWives.CkAns2.src = "images/qz-asteric.gif";
		}

	if(document.KHWives.sel2.value == "0")
		{
		document.KHWives.CkAns3.src = "images/qz-asteric.gif";
		}
		
	if(document.KHWives.sel3.value == "0")
		{
		document.KHWives.CkAns4.src = "images/qz-asteric.gif";
		}
		
	if(document.KHWives.sel4.value == "0")
		{
		document.KHWives.CkAns5.src = "images/qz-asteric.gif";
		}
		
	if(document.KHWives.sel5.value == "0")
		{
		document.KHWives.CkAns6.src = "images/qz-asteric.gif";
		}
}



function chSel1() //for pull down sel0
{
	choice = document.KHWives.sel0.value

	switch (choice) {
		case "0":
			alert("Please choose a name.")
			document.KHWives.ques1.src = "images/England_qz_tn.jpg";
			break
		case "1":
			//alert("Anne Boleyn")
			document.KHWives.ques1.src = "images/England_Boleyn_tn.jpg";
			break
		case "2":
			//alert("Anne of Cleves")
			document.KHWives.ques1.src = "images/England_Cleves_tn.jpg";
			break
		case "3":
			//alert("Catherine of Aragon")
			document.KHWives.ques1.src = "images/England_Catherine_tn.jpg";
			break
		case "4":
			//alert("Jane Seymour")
			document.KHWives.ques1.src = "images/England_Seymour_tn.jpg";
			break
		case "5":
			//alert("Katherine Howard")
			document.KHWives.ques1.src = "images/England_Howard_tn.jpg";
			break
		case "6":
			//alert("Katherine Parr")
			document.KHWives.ques1.src = "images/England_Parr_tn.jpg";
			break
		default:
			alert("undetermined")
		}
}


function chSel2() //for pull down sel1
{
	choice = document.KHWives.sel1.value

	switch (choice) {
		case "0":
			alert("Please choose a name.")
			document.KHWives.ques2.src = "images/England_qz_tn.jpg";
			break
		case "1":
			//alert("Anne Boleyn")
			document.KHWives.ques2.src = "images/England_Boleyn_tn.jpg";
			break
		case "2":
			//alert("Anne of Cleves")
			document.KHWives.ques2.src = "images/England_Cleves_tn.jpg";
			break
		case "3":
			//alert("Catherine of Aragon")
			document.KHWives.ques2.src = "images/England_Catherine_tn.jpg";
			break
		case "4":
			//alert("Jane Seymour")
			document.KHWives.ques2.src = "images/England_Seymour_tn.jpg";
			break
		case "5":
			//alert("Katherine Howard")
			document.KHWives.ques2.src = "images/England_Howard_tn.jpg";
			break
		case "6":
			//alert("Katherine Parr")
			document.KHWives.ques2.src = "images/England_Parr_tn.jpg";
			break
		default:
			alert("undetermined")
		}
}

function chSel3() //for pull down sel2
{
	choice = document.KHWives.sel2.value

	switch (choice) {
		case "0":
			alert("Please choose a name.")
			document.KHWives.ques3.src = "images/England_qz_tn.jpg";
			break
		case "1":
			//alert("Anne Boleyn")
			document.KHWives.ques3.src = "images/England_Boleyn_tn.jpg";
			break
		case "2":
			//alert("Anne of Cleves")
			document.KHWives.ques3.src = "images/England_Cleves_tn.jpg";
			break
		case "3":
			//alert("Catherine of Aragon")
			document.KHWives.ques3.src = "images/England_Catherine_tn.jpg";
			break
		case "4":
			//alert("Jane Seymour")
			document.KHWives.ques3.src = "images/England_Seymour_tn.jpg";
			break
		case "5":
			//alert("Katherine Howard")
			document.KHWives.ques3.src = "images/England_Howard_tn.jpg";
			break
		case "6":
			//alert("Katherine Parr")
			document.KHWives.ques3.src = "images/England_Parr_tn.jpg";
			break
		default:
			alert("undetermined")
		}
}

function chSel4() //for pull down sel3
{
	choice = document.KHWives.sel3.value

	switch (choice) {
		case "0":
			alert("Please choose a name.")
			document.KHWives.ques4.src = "images/England_qz_tn.jpg";
			break
		case "1":
			//alert("Anne Boleyn")
			document.KHWives.ques4.src = "images/England_Boleyn_tn.jpg";
			break
		case "2":
			//alert("Anne of Cleves")
			document.KHWives.ques4.src = "images/England_Cleves_tn.jpg";
			break
		case "3":
			//alert("Catherine of Aragon")
			document.KHWives.ques4.src = "images/England_Catherine_tn.jpg";
			break
		case "4":
			//alert("Jane Seymour")
			document.KHWives.ques4.src = "images/England_Seymour_tn.jpg";
			break
		case "5":
			//alert("Katherine Howard")
			document.KHWives.ques4.src = "images/England_Howard_tn.jpg";
			break
		case "6":
			//alert("Katherine Parr")
			document.KHWives.ques4.src = "images/England_Parr_tn.jpg";
			break
		default:
			alert("undetermined")
		}
}

function chSel5() //for pull down sel4
{
	choice = document.KHWives.sel4.value

	switch (choice) {
		case "0":
			alert("Please choose a name.")
			document.KHWives.ques5.src = "images/England_qz_tn.jpg";
			break
		case "1":
			//alert("Anne Boleyn")
			document.KHWives.ques5.src = "images/England_Boleyn_tn.jpg";
			break
		case "2":
			//alert("Anne of Cleves")
			document.KHWives.ques5.src = "images/England_Cleves_tn.jpg";
			break
		case "3":
			//alert("Catherine of Aragon")
			document.KHWives.ques5.src = "images/England_Catherine_tn.jpg";
			break
		case "4":
			//alert("Jane Seymour")
			document.KHWives.ques5.src = "images/England_Seymour_tn.jpg";
			break
		case "5":
			//alert("Katherine Howard")
			document.KHWives.ques5.src = "images/England_Howard_tn.jpg";
			break
		case "6":
			//alert("Katherine Parr")
			document.KHWives.ques5.src = "images/England_Parr_tn.jpg";
			break
		default:
			alert("undetermined")
		}
}


function chSel6() //for pull down sel5
{
	choice = document.KHWives.sel5.value

	switch (choice) {
		case "0":
			alert("Please choose a name.")
			document.KHWives.ques6.src = "images/England_qz_tn.jpg";
			break
		case "1":
			//alert("Anne Boleyn")
			document.KHWives.ques6.src = "images/England_Boleyn_tn.jpg";
			break
		case "2":
			//alert("Anne of Cleves")
			document.KHWives.ques6.src = "images/England_Cleves_tn.jpg";
			break
		case "3":
			//alert("Catherine of Aragon")
			document.KHWives.ques6.src = "images/England_Catherine_tn.jpg";
			break
		case "4":
			//alert("Jane Seymour")
			document.KHWives.ques6.src = "images/England_Seymour_tn.jpg";
			break
		case "5":
			//alert("Katherine Howard")
			document.KHWives.ques6.src = "images/England_Howard_tn.jpg";
			break
		case "6":
			//alert("Katherine Parr")
			document.KHWives.ques6.src = "images/England_Parr_tn.jpg";
			break
		default:
			alert("undetermined")
		}
}


function ChkAnswers()
{
	count =0;
	
	IsSelected();
	
	if(document.KHWives.sel0.value == "4")
		{
		count++;
		document.KHWives.CkAns1.src = "images/qz-correct.gif";
		}
	else{document.KHWives.CkAns1.src = "images/qz-wrong.gif";}
	
	if(document.KHWives.sel1.value == "5")
		{
		count++;
		document.KHWives.CkAns2.src = "images/qz-correct.gif";
		}
	else{document.KHWives.CkAns2.src = "images/qz-wrong.gif";}

	if(document.KHWives.sel2.value == "3")
		{
		count++;
		document.KHWives.CkAns3.src = "images/qz-correct.gif";
		}
	else{document.KHWives.CkAns3.src = "images/qz-wrong.gif";}
		
	if(document.KHWives.sel3.value == "2")
		{
		count++;
		document.KHWives.CkAns4.src = "images/qz-correct.gif";
		}
	else{document.KHWives.CkAns4.src = "images/qz-wrong.gif";}
		
	if(document.KHWives.sel4.value == "6")
		{
		count++;
		document.KHWives.CkAns5.src = "images/qz-correct.gif";
		}
	else{document.KHWives.CkAns5.src = "images/qz-wrong.gif";}
		
	if(document.KHWives.sel5.value == "1")
		{
		count++;
		document.KHWives.CkAns6.src = "images/qz-correct.gif";
		}
	else{document.KHWives.CkAns6.src = "images/qz-wrong.gif";}

	alert("You got "+count+" correct answer(s).");

}

// terminate code hiding -->