function frmValidation(theForm) {
	var validator = new Validate();
	var oType = theForm.rdType;
	var intTypeLength = null;
	var blnTypeSelected = false;
	var oResellers = theForm.rdResellers;
	var intResellersLength = null;
	var blnResellersSelected = false;
	var intIx = 0;


//	Check Type radio set
	if (oType[2].checked) {
    	alert("You must be either a reseller or a verifiable eductor in order to qualify for a resellers discount.");
    	return false;
  	}	

//	Check Resellers radio set
	intResellersLength = oResellers.length;
	for (intIx = 0; intIx < intResellersLength; intIx++) {
		if (oResellers[intIx].checked) {
			blnResellersSelected = true;
			break;
		}
	}

	if (!blnResellersSelected) {
		alert("Please select Yes or No for the \"Resellers Number or Business License\" field.")
		return false;
	}

//	Perform additional varification against the form input

   if (theForm.rdResellers.length == 0)
  {
    alert("Please enter a value for the \"Reseller License\" field.");
    theForm.rdReseller.focus();
    return false;
  }
  

  if (theForm.strCompany.value == "")
  {
    alert("Please enter a value for the \"Company\" field.");
    theForm.strCompany.focus();
    return (false);
  }  

  if (theForm.strContact_Name.value == "")
  {
    alert("Please enter a value for the \"Contact Name\" field.");
    theForm.strContact_Name.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.strAddress1.value == "")
  {
    alert("Please enter a value for the \"Address 1\" field.");
    theForm.strAddress1.focus();
    return (false);
  }
  
  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.strPhone.value == "")
  {
    alert("Please enter a value for the \"Phone Number\" field.");
    theForm.strPhone.focus();
    return (false);
  }
  

 
// 	if (validator.isValidTelephoneNum(theForm.strPhone.value)) {
//	}
//	else {
//		alert("Telephone number must be in the form\n+999 (999)999 9999 ext 99999.")
//		theForm.strPhone.focus();
//		return false;
//	}



  return (true);
}
