function frmValidation(theForm) {
	var validator = new Validate();


  if (theForm.strName.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.strName.focus();
    return (false);
  }
  

//	====== START EMAIL BLOCK ===================== 
  if (theForm.strMain.value == "")
  {
    alert("Please enter a value for the \"E-mail Address\" field.");
    theForm.strMain.focus();
    return (false);
  }

	if (validator.isValidEmail(theForm.strMain.value)) {
	}
	else {
		alert("Email address is invalid format. Please correct.")
		theForm.strMain.focus();
		return false;
	}

  if (theForm.strConfirm.value == "")
  {
    alert("Please enter a value for the \"Confirm E-mail Address\" field.");
    theForm.strConfirm.focus();
    return (false);
  }

	if (validator.isValidEmail(theForm.strConfirm.value)) {
	}
	else {
		alert("Confirm Email address is invalid format. Please correct.")
		theForm.strConfirm.focus();
		return false;
	}
	
	if (theForm.strMain.value != theForm.strConfirm.value)
  {
		alert("The Email addresses do not match. Please correct.")
		theForm.strMain.focus();
		return false;
	}	
	
//	====== END EMAIL BLOCK ===================== 

    if (theForm.strCity.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.strCity.focus();
    return (false);
  }
  
    if (theForm.strState.value == "")
  {
    alert("Please enter a value for the \"State\" field.");
    theForm.strState.focus();
    return (false);
  }

	if (theForm.strZip.value == "")
  {
    alert("Please enter a value for the \"Zip Code\" field.");
    theForm.strZip.focus();
    return (false);
  }

  if (theForm.strAreaCode.value == "")
  {
    alert("Please enter a value for the \"Area Code\" field.");
    theForm.strAreaCode.focus();
    return (false);
  }
  
  return (true);
}
