// JavaScript Document
<!--
function Validator(theForm)
{

  if (theForm.level.selectedIndex == 0)
  {
    alert("Please select one of the \"Level\" options.");
    theForm.level.focus();
    return (false);
  }
	
  if (theForm.subject.selectedIndex == 0)
  {
    alert("The first \"Subject\" option is not a valid selection.  Please choose one of the other options.");
    theForm.subject.focus();
    return (false);
  }
  if (theForm.topic.selectedIndex == 0)
  {
    alert("The first \"Topic\" option is not a valid selection.  Please choose one of the other options.");
    theForm.topic.focus();
    return (false);
  }
  if (theForm.question.value == "")
  {
    alert("Please enter a value for the \"Question\" field.");
    theForm.question.focus();
    return (false);
  }

  if (theForm.optionA.value == "")
  {
    alert("Please enter a value for the \"Option A\" field.");
    theForm.optionA.focus();
    return (false);
  }
  if (theForm.optionB.value == "")
  {
    alert("Please enter a value for the \"Option B\" field.");
    theForm.optionB.focus();
    return (false);
  }
  if (theForm.optionC.value == "")
  {
    alert("Please enter a value for the \"Option C\" field.");
    theForm.optionC.focus();
    return (false);
  }
  if (theForm.optionD.value == "")
  {
    alert("Please enter a value for the \"Option D\" field.");
    theForm.optionD.focus();
    return (false);
  }

  return true;
}  
//-->
