function Form1_Validator(theForm)
{

var alertsay = ""; 

// RFA modification to location field
// check if no drop down has been selected
if (theForm.division.selectedIndex < 0)
{
alert("Please select one of the \"Division/Location\" options.");
theForm.division.focus();
return (false);
}

// check if the first drop down is selected, if so, invalid selection
if (theForm.division.selectedIndex == 0)
{
alert("The first \"Select Division\" option is not a valid selection.");
theForm.division.focus();
return (false);
} 

// RFA modification to submitter field
if (theForm.submitter.value == "")
{
alert("Please enter your name in the \"Full Name\" field");
theForm.submitter.focus();
return (false);
}

// require at least 8 characters be entered
if (theForm.submitter.value.length < 5)
{
alert("Please enter at least 5 characters in the \"Full Name\" field");
theForm.submitter.focus();
return (false);
}


// RFA modification to email field
// check if email field is blank
if (theForm.Email.value == "")
{
alert("Please enter a valid email address for the \"Email Address\" field.");
theForm.Email.focus();
return (false);
}


// test if valid email address, must have @ and .
var checkEmail = "@.";
var checkStr = theForm.Email.value;
var EmailValid = false;
var EmailAt = false;
var EmailPeriod = false;
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkEmail.length;  j++)
{
if (ch == checkEmail.charAt(j) && ch == "@")
EmailAt = true;
if (ch == checkEmail.charAt(j) && ch == ".")
EmailPeriod = true;
	  if (EmailAt && EmailPeriod)
		break;
	  if (j == checkEmail.length)
		break;
	}
	// if both the @ and . were in the string
if (EmailAt && EmailPeriod)
{
		EmailValid = true
		break;
	}
}
if (!EmailValid)
{
alert("The \"Email Address\" field must contain an \"@\" and a \".\"");
theForm.Email.focus();
return (false);
}

// RFA modification to telephone number field
if (theForm.phone.value == "")
{
alert("Please enter your phone number in the \"Phone Number\" field");
theForm.phone.focus();
return (false);
}

// require at least 10 characters be entered
if (theForm.phone.value.length < 10)
{
alert("Please enter at least 10 numeric characters in the \"Phone Number\" field");
theForm.phone.focus();
return (false);
}

// RFA modification to address field
if (theForm.issue.value == "")
{
alert("Please enter your comments/issues address in the \"Issue(s) Experienced \" field");
theForm.issue.focus();
return (false);
}

// require at least 3 characters be entered
if (theForm.issue.value.length < 25)
{
alert("Please enter at least 25 characters in the \"Issue(s) Experienced \" field");
theForm.issue.focus();
return (false);
}

// because this is a sample page, don't allow to exit to the post action
// comes in handy when you are testing the form validations and don't
// wish to exit the page

return confirm("! THIS CONTACT FORM IS INTENDED FOR INDIVIDUALS NEEDING ASSSITANCE WITH ELECTRONIC FILING AND CM/ECF ONLY ! FOR GENERAL INFORMATION, CONTACT THE PHONE NUMBER FOR THE APPROPRIATE DIVISION. CLICK THE OK BUTTON TO COMPLETE THE SUBMISSION PROCESS OR CANCEL TO ABORT.");
//alertsay = "! THIS CONTACT FORM IS INTENDED FOR INDIVIDUALS NEEDING ASSSITANCE WITH ELECTRONIC FILING AND CM/ECF ONLY ! FOR GENERAL INFORMATION, CONTACT THE PHONE NUMBER FOR THE APPROPRIATE DIVISION. CLICK THE OK BUTTON TO COMPLETE THE SUBMISSION PROCESS."
//alert(alertsay);
//return (true);

}