function armorytheaterfund_Validator(theForm)
{
  if (theForm.contributionamount.value == "" && theForm.monthlyamount == "")
  {
    alert("Please enter a contribution amount.");
    theForm.contributionamount.focus();
    return (false);
  }

  if (theForm.companymatching.value != "" && theForm.companyname == "")
  {
    alert("Please enter the name of your company for matching funds.");
    theForm.companyname.focus();
    return (false);
  }

  if (theForm.acknowledgepermission.value == "true" && theForm.membername == "")
  {
    alert("Please enter the name you would like to be recognized.");
    theForm.companyname.focus();
    return (false);
  }
  
  return (true);
}

function EnableInstallments() {
		var optionsCount = 3;
		for (var n = 1; n <= optionsCount; n++) {
			document.getElementById('Installment' + n).disabled = false;
		}
		document.getElementById('Installment1').checked = true;
		document.getElementById('InstallmentAmount').disabled = false;
		document.getElementById('ContributionAmount').disabled = true;
}

function DisableInstallments() {
		var optionsCount = 3;
		for (var n = 1; n <= optionsCount; n++) {
			document.getElementById('Installment' + n).disabled = true;
		}
		document.getElementById('InstallmentAmount').disabled = true;
		document.getElementById('ContributionAmount').disabled = false;
}
