
// CheckContact Form
function checkContact(theForm)
{
if (!checkText(theForm.sName,"Please fill in the \"Name\" field!", "yes"))	{
	return false;
}
if (!checkPhone(theForm.sPhone,"Phone", "yes"))	{
	return false;
}
if (!checkEmail(theForm.sEmail,"Please use a properly formatted email!", "yes"))	{
	return false;
}
return true;
}
// Check Contact Form


// Check News
function checkNews(theForm)
{
if (!checkEmail(theForm.sEmail,"Please use a properly formatted email!", "yes"))	{
	return false;
}
if (!checkText(theForm.strCAPTCHA,"Please fill in the \"Verify Code\" field!", "yes"))	{
	return false;
}
if (!checkText(theForm.sTitle,"Please fill in the \"Title\" field!", "yes"))	{
	return false;
}
if (!checkDate(theForm.dDate, "yes"))	{
	return false;
}
if (!checkText(theForm.sUrl,"Please fill in the \"Url\" field!", "yes"))	{
	return false;
}
return true;
}
// Check News

// Check Info Update
function checkInfoUpdate(theForm)
{

if (theForm.sPassword.value != "")
{
if (!checkText(theForm.sPassword,"Please fill in the \"Password\" field!", "yes"))	{
	return false;
}
if (!checkText(theForm.sPassword2,"Please fill in the \"Confirm Password\" field!", "yes"))	{
	return false;
}
if (theForm.sPassword.value != theForm.sPassword2.value)
  {
    alert("Your passwords do not match.  Please re-confirm your password.");
    theForm.sPassword2.focus();
    return (false);
  }
  }
if (!checkText(theForm.sFirstName,"Please fill in the \"First Name\" field!", "yes"))	{
	return false;
}
if (!checkText(theForm.sLastName,"Please fill in the \"Last Name\" field!", "yes"))	{
	return false;
}
return true;
}
// Check Info Update

// Check Registration
function checkRegister(theForm)
{
if (!checkEmail(theForm.sUsername,"Please use a properly formatted email!", "yes"))	{
	return false;
}
if (!checkText(theForm.strCAPTCHA,"Please fill in the \"Verify Code\" field!", "yes"))	{
	return false;
}
if (!checkText(theForm.sPassword,"Please fill in the \"Password\" field!", "yes"))	{
	return false;
}
if (!checkText(theForm.sPassword2,"Please fill in the \"Confirm Password\" field!", "yes"))	{
	return false;
}
if (theForm.sPassword.value != theForm.sPassword2.value)
  {
    alert("Your passwords do not match.  Please re-confirm your password.");
    theForm.sPassword2.focus();
    return (false);
  }
if (!checkText(theForm.sScreenName,"Please fill in the \"Screen Name\" field!", "yes"))	{
	return false;
}
if (!checkText(theForm.sFirstName,"Please fill in the \"First Name\" field!", "yes"))	{
	return false;
}
if (!checkText(theForm.sLastName,"Please fill in the \"Last Name\" field!", "yes"))	{
	return false;
}
return true;
}
// Check Registration

// CheckContact Form
function checkContact(theForm)
{
if (!checkText(theForm.sName,"Please fill in the \"Name\" field!", "yes"))	{
	return false;
}
if (!checkPhone(theForm.sPhone,"Phone", "yes"))	{
	return false;
}
if (!checkEmail(theForm.sEmail,"Please use a properly formatted email!", "yes"))	{
	return false;
}
return true;
}
// Check Contact Form


