// JavaScript Document
function check_comments(theForm)
{

  var radioSelected = false;
  for (i = 0;  i < theForm.gender.length;  i++)
  {
    if (theForm.gender[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please tell us whether you're Male or Female.");
    return (false);
  }

  if (theForm.age.value == "")
  {
    alert("Please select an age range from the dropdown menu.");
    theForm.age.focus();
    return (false);
  }

  if (theForm.classify.value == "")
  {
    alert("Please tell us your classification.");
    theForm.classify.focus();
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.frequency.length;  i++)
  {
    if (theForm.frequency[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please tell us how frequently you visit the Rec & Fitness Center.");
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.experience.length;  i++)
  {
    if (theForm.experience[i].checked)
        radioSelected = true;
  }
  
  if (!radioSelected)
  {
    alert("Please tell us about your overall experience with RFW Department.");
    return (false);
  }
  
 
  var checkbox_choices = 0;
  for (i = 0; i < theForm.suggestion.length; i++)
	{
		if (theForm.suggestion[i].checked)
			{checkbox_choices = checkbox_choices + 1;}
	}
	
  if (!checkbox_choices)
  {
	alert("Please identify your area of concern or suggestion.");
    return (false);
  }
  
  var checkbox_choices = 0;
  for (i = 0; i < theForm.program.length; i++)
	{
		if (theForm.program[i].checked)
			{checkbox_choices = checkbox_choices + 1;}
	}
	
  if (!checkbox_choices)
  {
	alert("Please identify the program or facility in question.");
    return (false);
  }
   return (true);
}

function check_form(theForm)
{

  if (theForm.team_name.value == "")
  {
    alert("Please enter a value for the Team Name field.");
    theForm.team_name.focus();
    return (false);
  }

  if (theForm.first_name1.value == "")
  {
    alert("Please enter a value for the Captian's First name field.");
    theForm.Last_name.focus();
    return (false);
  }

  if (theForm.First_name.value == "")
  {
    alert("Please enter a value for the \"First_name\" field.");
    theForm.First_name.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Account_name.value == "")
  {
    alert("Please enter a value for the \"Account Name\" field.");
    theForm.Account_name.focus();
    return (false);
  }

  if (theForm.Account_number.value == "")
  {
    alert("Please enter a value for the \"Account Number\" field.");
    theForm.Account_number.focus();
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.Account_type.length;  i++)
  {
    if (theForm.Account_type[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Account type\" options.");
    return (false);
  }

  if (theForm.Telephone.value == "")
  {
    alert("Please enter a value for the \"Telephone\" field.");
    theForm.Telephone.focus();
    return (false);
  }

  if (theForm.Event.value == "")
  {
    alert("Please enter a value for the \"Event\" field.");
    theForm.Event.focus();
    return (false);
  }

  if (theForm.Date.value == "")
  {
    alert("Please enter a value for the \"Date\" field.");
    theForm.Date.focus();
    return (false);
  }

  if (theForm.Room_building.value == "")
  {
    alert("Please enter a value for the \"Room_building\" field.");
    theForm.Room_building.focus();
    return (false);
  }

  if (theForm.Alternate.value == "")
  {
    alert("Please enter a value for the \"Alternate\" field.");
    theForm.Alternate.focus();
    return (false);
  }

  if (theForm.Pre_access_time.value == "")
  {
    alert("Please enter a value for the \"Pre_access_time\" field.");
    theForm.Pre_access_time.focus();
    return (false);
  }

  if (theForm.Start_time.value == "")
  {
    alert("Please enter a value for the \"Start_time\" field.");
    theForm.Start_time.focus();
    return (false);
  }

  if (theForm.End_time.value == "")
  {
    alert("Please enter a value for the \"End_time\" field.");
    theForm.End_time.focus();
    return (false);
  }

  if (theForm.Post_access_time.value == "")
  {
    alert("Please enter a value for the \"Post_access_time\" field.");
    theForm.Post_access_time.focus();
    return (false);
  }

  if (theForm.Number_of_persons.value == "")
  {
    alert("Please enter a value for the \"Number_of_persons\" field.");
    theForm.Number_of_persons.focus();
    return (false);
  }

  var radioSelected = false;
  for (i = 0;  i < theForm.DiversityEvent.length;  i++)
  {
    if (theForm.DiversityEvent[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select one of the \"Foundation account\" options.");
    return (false);
  }

  if (theForm.Comments.value == "")
  {
    alert("Please enter a value for the \"Comments\" field.");
    theForm.Comments.focus();
    return (false);
  }
  return (true);
}
//-->
