function register_Validator(theForm)
{

	var alertsay = "";

// check to see if the field is blank
	if (theForm.Name.value == "")
{
	alert("Please enter your Full Name.");
	theForm.Name.focus();
	return (false);
}
// require at least 5 characters be entered
if (theForm.Name.value.length < 4)
{
	alert("Please enter your valid Name.");
	theForm.Name.value="";
	theForm.Name.focus();
	return (false);
}
// check if email field is blank
if (theForm.EmailFrom.value == "")
{
	alert("Please enter a valid email address");
	theForm.EmailFrom.focus();
	return (false);
}
if (theForm.EmailFrom.value == "@.")
{
	alert("Please enter a valid email address");
	theForm.EmailFrom.value="";
	theForm.EmailFrom.focus();
	return (false);
}

// test if valid email address, must have @ and .
var checkEmail = "@.";
var checkStr = theForm.EmailFrom.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("Invalid email address");
	theForm.EmailFrom.value="";
	theForm.EmailFrom.focus();
	return (false);
}

// check to see if the field is blank
if (theForm.Feedback.value == "")
{
	alert("Please enter your Feedback");
	theForm.Feedback.focus();
	return (false);
}
}