function valform()  {
	fstname_ok= true;
	if (document.SpEdEight.fstName.value =="") fstname_ok=false;
	
	lstname_ok= true;
	if (document.SpEdEight.lstName.value =="") lstname_ok=false;
	
	hsid_ok= true;
	if (document.SpEdEight.hsid.value =="") hsid_ok=false;
	
	name_ok = (fstname_ok && lstname_ok);

	id_ok = (hsid_ok); 

<!---Item 1. --->	
	qone_ok=true;
	if (!document.SpEdEight.Oneb.checked) qone_ok=false;
	var count=0;
	   if (document.SpEdEight.Onea.checked)  {
	  	count++;}
	   if (document.SpEdEight.Oneb.checked)  {
	  	count++;}
	   if (document.SpEdEight.Onec.checked)  {
	  	count++;}
	   if (document.SpEdEight.Oned.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   fstqst_ok = (qone_ok && count==1); 
<!---Item 2. --->	
	qtwo_ok=true;
	if (!document.SpEdEight.Twoc.checked) qtwo_ok=false;
	var count=0;
	   if (document.SpEdEight.Twoa.checked)  {
	  	count++;}
	   if (document.SpEdEight.Twob.checked)  {
	  	count++;}
	   if (document.SpEdEight.Twoc.checked)  {
	  	count++;}
	   if (document.SpEdEight.Twod.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   secqst_ok = (qtwo_ok && count==1); 
<!---Item 3. --->	
	qthree_ok=true;
	if (!document.SpEdEight.Threed.checked) qthree_ok=false;
	var count=0;
	   if (document.SpEdEight.Threea.checked)  {
	  	count++;}
	   if (document.SpEdEight.Threeb.checked)  {
	  	count++;}
	   if (document.SpEdEight.Threec.checked)  {
	  	count++;}
	   if (document.SpEdEight.Threed.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   trdqst_ok = (qthree_ok && count==1); 
<!---Item 4. --->	
	qfour_ok=true;
	if (!document.SpEdEight.Foura.checked) qfour_ok=false;
	var count=0;
	   if (document.SpEdEight.Foura.checked)  {
	  	count++;}
	   if (document.SpEdEight.Fourb.checked)  {
	  	count++;}
	   if (document.SpEdEight.Fourc.checked)  {
	  	count++;}
	   if (document.SpEdEight.Fourd.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   fthqst_ok = (qfour_ok && count==1); 
<!---Item 5. --->	
	qfive_ok=true;
	if (!document.SpEdEight.FiveTrue.checked) qfive_ok=false;
	var count=0;
	   if (document.SpEdEight.FiveTrue.checked)  {
	  	count++;}
	   if (document.SpEdEight.FiveFalse.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   fveqst_ok = (qfive_ok && count==1); 
<!---Item 6. --->	
	qsix_ok=true;
	if (!document.SpEdEight.SixFalse.checked) qsix_ok=false;
	var count=0;
	   if (document.SpEdEight.SixTrue.checked)  {
	  	count++;}
	   if (document.SpEdEight.SixFalse.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   sixqst_ok = (qsix_ok && count==1); 
<!---Item 7. --->	
	qseven_ok=true;
	if (!document.SpEdEight.SevenTrue.checked) qseven_ok=false;
	var count=0;
	   if (document.SpEdEight.SevenTrue.checked)  {
	  	count++;}
	   if (document.SpEdEight.SevenFalse.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   svnqst_ok = (qseven_ok && count==1); 
<!---Item 8. --->	
	qeight_ok=true;
	if (!document.SpEdEight.EightTrue.checked) qeight_ok=false;
	var count=0;
	   if (document.SpEdEight.EightTrue.checked)  {
	  	count++;}
	   if (document.SpEdEight.EightFalse.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   ehtqst_ok = (qeight_ok && count==1); 
<!---Item 9. --->	
	qnine_ok=true;
	if (!document.SpEdEight.NineTrue.checked) qnine_ok=false;
	var count=0;
	   if (document.SpEdEight.NineTrue.checked)  {
	  	count++;}
	   if (document.SpEdEight.NineFalse.checked)  {
	  	count++;}
	   if (count!=1); {
	form_ok=false;
        }
   ninqst_ok = (qnine_ok && count==1); 
   
	 form_ok = (name_ok && id_ok && fstqst_ok && secqst_ok && trdqst_ok && fthqst_ok
	  && fveqst_ok && sixqst_ok && svnqst_ok && ehtqst_ok && ninqst_ok); 

	if (form_ok)  {
	alert("Your test is submitted! This will be recorded in your training records.");
	}  else  {
	if (fstname_ok == false) alert("Please include your first name");
	if (lstname_ok == false) alert("Please include your last name");
	if (id_ok == false) alert("Your ID Number is required");
	if (fstqst_ok == false) alert("Sorry, 1. is not correct");
	if (secqst_ok == false) alert("Sorry, 2. is not correct");
	if (trdqst_ok == false) alert("Sorry, 3. is not correct");
	if (fthqst_ok == false) alert("Sorry, 4. is not correct");
	if (fveqst_ok == false) alert("Sorry, 5. is not correct");
	if (sixqst_ok == false) alert("Sorry, 6. is not correct");
	if (svnqst_ok == false) alert("Sorry, 7. is not correct");
	if (ehtqst_ok == false) alert("Sorry, 8. is not correct");
	if (ninqst_ok == false) alert("Sorry, 9. is not correct");
	
	}
	return (form_ok);
}

