function frmValidation(theForm) {
	var validator = new Validate();
	var oCustomer = theForm.Customer;
	var intCustomerLength = null;
	var blnCustomerSelected = false;


  if (theForm.strName.value == "")
  {
    alert("Please enter your name in the \"Name\" field.");
    theForm.strName.focus();
    return (false);
  }
  
  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;
	}	
	
  if (theForm.selProgram.value == "1")
  {
    alert("Please choose a program.");
    theForm.selProgram.focus();
    return false;
  } 
    
 //	Check Customer radio set
	intCustomerLength = oCustomer.length;
	for (intIx = 0; intIx < intCustomerLength; intIx++) {
		if (oCustomer[intIx].checked) {
			blnCustomerSelected = true;
			break;
		}
	}
	 	 
  	if (!blnCustomerSelected) {
		alert("Please indicate if you are a customer")

		return false;
	}
  
   if (theForm.strSubject.value == "")
  {
    alert("Please type in the subject line for your message.");
    theForm.strSubject.focus();
    return false;
  } 

  if (theForm.strQuestion.value == "")
  {
    alert("Please type in your question.");
    theForm.strQuestion.focus();
    return false;
  } 



  
  return (true);
}

