//######################
//### JS used with Game Assessment#
//######################

function CheckCountry(form){
	var selectedItem = form.Country.selectedIndex;
	
	if (form.Country.options[selectedItem].text != "United States")
	{
	    form.State.selectedIndex = 0;
	}
	return;
}

function ValiditateQuestionsOK(theForm){
	theForm.submit();
}

function ValiditateQuestions(theForm){		
	var radioSelected = false;
	var i;
	
	for (i = 0;  i < theForm.st_Q1.length;  i++){
		if (theForm.st_Q1[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 1\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q2.length;  i++){
		if (theForm.st_Q2[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 2\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q3.length;  i++){
		if (theForm.st_Q3[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 3\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q4.length;  i++){
		if (theForm.st_Q4[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 4\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q5.length;  i++){
		if (theForm.st_Q5[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 5\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q6.length;  i++){
		if (theForm.st_Q6[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 6\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q7.length;  i++){
		if (theForm.st_Q7[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 7\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q8.length;  i++){
		if (theForm.st_Q8[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 8\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q9.length;  i++){
		if (theForm.st_Q9[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 9\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q10.length;  i++){
		if (theForm.st_Q10[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 10\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q11.length;  i++){
		if (theForm.st_Q11[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 11\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q12.length;  i++){
		if (theForm.st_Q12[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 12\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q13.length;  i++){
		if (theForm.st_Q13[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 13\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q14.length;  i++){
		if (theForm.st_Q14[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 14\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q15.length;  i++){
		if (theForm.st_Q15[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 15\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q16.length;  i++){
		if (theForm.st_Q16[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 16\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q17.length;  i++){
		if (theForm.st_Q17[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 17\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q18.length;  i++){
		if (theForm.st_Q18[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 18\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q19.length;  i++){
		if (theForm.st_Q19[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 19\" options.");
		return (false);
	}
	
	radioSelected = false;
	for (i = 0;  i < theForm.st_Q20.length;  i++){
		if (theForm.st_Q20[i].checked){
		    radioSelected = true;
		}
	}
	if (!radioSelected){
		alert("Please select one of the \"Question 20\" options.");
		return (false);
	}

	if (radioSelected){
		ValiditateQuestionsOK(theForm);
	}
}