function frmValidation(theForm) {
	var validator = new Validate();
	
  if (theForm.selProgram.value == "1")
  {
    alert("Please choose a program.");
    theForm.selProgram.focus();
    return false;
  } 
  
  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.selCountry.value == "1")
  {
    alert("Please choose a Country.");
    theForm.strCountry.focus();
    return false;
  } 

  if (theForm.strEndorsement.value == "(50 words maximum please)")
  {
    alert("Please complete your endorsement.");
    theForm.strEndorsement.focus();
    return false;
  } 

 

  return (true);
}
