function ValidateForm(thisForm)
{
 if (!ValidateA(thisForm))
  {
    return(false);
  }
 if (!ValidateB(thisForm))
  {
    return(false);
  }
 if (!ValidateC(thisForm))
  {
    return(false);
  }
 if (!ValidateD(thisForm))
  {
    return(false);
  }
 if (!ValidateE(thisForm))
  {
    return(false);
  }
 if (!ValidateF(thisForm))
  {
    return(false);
  }
 if (!ValidateG(thisForm))
  {
    return(false);
  }
 if (!ValidateH(thisForm))
  {
    return(false);
  }
 if (!ValidateI(thisForm))
  {
    return(false);
  }
 if (!ValidateJ(thisForm))
  {
    return(false);
  }
 sel = thisForm.A1.selectedIndex;
 if (thisForm.A1.options[sel].text=="Grant Amount")  
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.A3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.A3.focus();
	  return(false);
	}
  }
  
 if (thisForm.A1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.A3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.A3.focus();
	  return(false);
	}
  }
 if (thisForm.A1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.A3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.A3.focus();
	  return(false);
	}
  }
 if (thisForm.A1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.A3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.A3.focus();
	  return(false);
	}
  }

 if (thisForm.A1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.A3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.A3.focus();
	  return(false);
	}
  }
    
 if ((thisForm.A1.selectedIndex == 3 || thisForm.A1.selectedIndex == 7) && thisForm.A3.value.length > 20 && (thisForm.A2.selectedIndex < 9))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.A3.focus();
    return (false);
  }
 if (thisForm.A1.selectedIndex == 10 && (thisForm.A3.value.length > 4 || thisForm.A3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.A3.focus();
    return (false);
  }
 if (thisForm.A3.value == "")
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.A3.focus();
    return (false);
  }
 sel = thisForm.B1.selectedIndex;
 if (thisForm.B1.options[sel].text=="Grant Amount")  
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.B3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.B3.focus();
	  return(false);
	}
  }
 if (thisForm.B1.options[sel].text=="Grant Year")  
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.B3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.B3.focus();
	  return(false);
	}
  }
 if (thisForm.B1.options[sel].text=="Grantmaker Assets")  
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.B3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.B3.focus();
	  return(false);
	}
  }
 if (thisForm.B1.options[sel].text=="Grantmaker Giving")  
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.B3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.B3.focus();
	  return(false);
	}
  }

 if (thisForm.B1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.B3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.B3.focus();
	  return(false);
	}
  }
  
 if (thisForm.B1.selectedIndex == 11 && (thisForm.B3.value.length > 4 || thisForm.B3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.B3.focus();
    return (false);
  }
 if ((thisForm.B1.selectedIndex == 4 || thisForm.B1.selectedIndex == 8) && thisForm.B3.value.length > 20 && (thisForm.B2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.B3.focus();
    return (false);
  }
 if (thisForm.B1.selectedIndex > 0 && (thisForm.B3.value == "" || thisForm.B3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.B3.focus();
    return (false);
  }
 sel = thisForm.C1.selectedIndex;
 if (thisForm.C1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.C3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.C3.focus();
	  return(false);
	}
  }
 if (thisForm.C1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.C3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.C3.focus();
	  return(false);
	}
  }
 if (thisForm.C1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.C3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.C3.focus();
	  return(false);
	}
  }
 if (thisForm.C1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.C3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.C3.focus();
	  return(false);
	}
  }

 if (thisForm.C1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.C3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.C3.focus();
	  return(false);
	}
  }
  
 if (thisForm.C1.selectedIndex == 11 && (thisForm.C3.value.length > 4 || thisForm.C3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.C3.focus();
    return (false);
  }
 if (thisForm.C1.selectedIndex > 0 && (thisForm.C3.value == "" || thisForm.C3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.C3.focus();
    return (false);
  }
 if ((thisForm.C1.selectedIndex == 4 || thisForm.C1.selectedIndex == 8) && thisForm.C3.value.length > 20 && (thisForm.C2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.C3.focus();
    return (false);
  }
 sel = thisForm.D1.selectedIndex;
 if (thisForm.D1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.D3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.D3.focus();
	  return(false);
	}
  }
 if (thisForm.D1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.D3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.D3.focus();
	  return(false);
	}
  }
 if (thisForm.D1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.D3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.D3.focus();
	  return(false);
	}
  }
 if (thisForm.D1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.D3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.D3.focus();
	  return(false);
	}
  }

 if (thisForm.D1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.D3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.D3.focus();
	  return(false);
	}
  }
  
 if (thisForm.D1.selectedIndex == 11 && (thisForm.D3.value.length > 4 || thisForm.D3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.D3.focus();
    return (false);
  }
 if (thisForm.D1.selectedIndex > 0 && (thisForm.D3.value == "" || thisForm.D3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.D3.focus();
    return (false);
  }
 if ((thisForm.D1.selectedIndex == 4 || thisForm.D1.selectedIndex == 8) && thisForm.D3.value.length > 20 && (thisForm.D2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.D3.focus();
    return (false);
  }
 sel = thisForm.E1.selectedIndex;
 if (thisForm.E1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.E3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.E3.focus();
	  return(false);
	}
  }
 if (thisForm.E1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.E3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.E3.focus();
	  return(false);
	}
  }
 if (thisForm.E1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.E3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.E3.focus();
	  return(false);
	}
  }
 if (thisForm.E1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.E3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.E3.focus();
	  return(false);
	}
  }

 if (thisForm.E1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.E3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.E3.focus();
	  return(false);
	}
  }
  
 if (thisForm.E1.selectedIndex == 11 && (thisForm.E3.value.length > 4 || thisForm.E3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.E3.focus();
    return (false);
  }
 if ((thisForm.E1.selectedIndex == 4 || thisForm.E1.selectedIndex == 8) && thisForm.E3.value.length > 20 && (thisForm.E2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.E3.focus();
    return (false);
  }
 if (thisForm.E1.selectedIndex > 0 && (thisForm.E3.value == "" || thisForm.E3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.E3.focus();
    return (false);
  }
 sel = thisForm.F1.selectedIndex;
 if (thisForm.F1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.F3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.F3.focus();
	  return(false);
	}
  }
 if (thisForm.F1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.F3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.F3.focus();
	  return(false);
	}
  }
 if (thisForm.F1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.F3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.F3.focus();
	  return(false);
	}
  }
 if (thisForm.F1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.F3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.F3.focus();
	  return(false);
	}
  }

 if (thisForm.F1.selectedIndex == 11 && (thisForm.F3.value.length > 4 || thisForm.F3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.F3.focus();
    return (false);
  }

 if (thisForm.F1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.F3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.F3.focus();
	  return(false);
	}
  }
  
 if (thisForm.F1.selectedIndex > 0 && (thisForm.F3.value == "" || thisForm.F3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.F3.focus();
    return (false);
  }
 if ((thisForm.F1.selectedIndex == 4 || thisForm.F1.selectedIndex == 8) && thisForm.F3.value.length > 20 && (thisForm.F2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.F3.focus();
    return (false);
  }
 sel = thisForm.G1.selectedIndex;
 if (thisForm.G1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.G3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.G3.focus();
	  return(false);
	}
  }
 if (thisForm.G1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.G3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.G3.focus();
	  return(false);
	}
  }
 if (thisForm.G1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.G3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.G3.focus();
	  return(false);
	}
  }
 if (thisForm.G1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.G3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.G3.focus();
	  return(false);
	}
  }

 if (thisForm.G1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.G3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.G3.focus();
	  return(false);
	}
  }

 if (thisForm.G1.selectedIndex == 11 && (thisForm.G3.value.length > 4 || thisForm.G3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.G3.focus();
    return (false);
  }
 if (thisForm.G1.selectedIndex > 0 && (thisForm.G3.value == "" || thisForm.G3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.G3.focus();
    return (false);
  }
 if ((thisForm.G1.selectedIndex == 4 || thisForm.G1.selectedIndex == 8) && thisForm.G3.value.length > 20 && (thisForm.G2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.G3.focus();
    return (false);
  }
 sel = thisForm.H1.selectedIndex;
 if (thisForm.H1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.H3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.H3.focus();
	  return(false);
	}
  }
 if (thisForm.H1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.H3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.H3.focus();
	  return(false);
	}
  }
 if (thisForm.H1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.H3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.H3.focus();
	  return(false);
	}
  }
 if (thisForm.H1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.H3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.H3.focus();
	  return(false);
	}
  }

 if (thisForm.H1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.H3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.H3.focus();
	  return(false);
	}
  }

 if (thisForm.H1.selectedIndex == 11 && (thisForm.H3.value.length > 4 || thisForm.H3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.H3.focus();
    return (false);
  }
 if (thisForm.H1.selectedIndex > 0 && (thisForm.H3.value == "" || thisForm.H3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.H3.focus();
    return (false);
  }
 if ((thisForm.H1.selectedIndex == 4 || thisForm.H1.selectedIndex == 8) && thisForm.H3.value.length > 20 && (thisForm.H2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.H3.focus();
    return (false);
  }
 sel = thisForm.I1.selectedIndex;
 if (thisForm.I1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.I3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.I3.focus();
	  return(false);
	}
  }
 if (thisForm.I1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.I3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.I3.focus();
	  return(false);
	}
  }
 if (thisForm.I1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.I3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.I3.focus();
	  return(false);
	}
  }
 if (thisForm.I1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.I3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.I3.focus();
	  return(false);
	}
  }

 if (thisForm.I1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.I3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.I3.focus();
	  return(false);
	}
  }

 if (thisForm.I1.selectedIndex == 11 && (thisForm.I3.value.length > 4 || thisForm.I3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.I3.focus();
    return (false);
  }
 if (thisForm.I1.selectedIndex > 0 && (thisForm.I3.value == "" || thisForm.I3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.I3.focus();
    return (false);
  }
 if ((thisForm.I1.selectedIndex == 4 || thisForm.I1.selectedIndex == 8) && thisForm.I3.value.length > 20 && (thisForm.I2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.I3.focus();
    return (false);
  }
 sel = thisForm.J1.selectedIndex;
 if (thisForm.J1.options[sel].text=="Grant Amount")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.J3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Amount Field.");
	  thisForm.J3.focus();
	  return(false);
	}
  }
 if (thisForm.J1.options[sel].text=="Grant Year")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.J3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Year Field.");
	  thisForm.J3.focus();
	  return(false);
	}
  }
 if (thisForm.J1.options[sel].text=="Grantmaker Assets")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.J3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Assets Field.");
	  thisForm.J3.focus();
	  return(false);
	}
  }
 if (thisForm.J1.options[sel].text=="Grantmaker Giving")
  {
    var checkOK = ",0123456789";
	var checkStr = thisForm.J3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter only numeric values in the Grantmaker Giving Field.");
	  thisForm.J3.focus();
	  return(false);
	}
  }

 if (thisForm.J1.options[sel].text=="Upload Year/Month")  
  {
    var checkOK = "/0123456789";
	var checkStr = thisForm.J3.value;
	var allValid = true;
	for (i=0; i < checkStr.length; i++)
	{
	  ch = checkStr.charAt(i);
	  for (j=0; j < checkOK.length; j++)
	    if (ch == checkOK.charAt(j))
		   break;
	  if (j == checkOK.length)
	  {
	    allValid = false;
		break;
	  }
	}
	if (!allValid)
	{
	  alert("Please enter four digits for the Year and two digits for the Month seperated by a / as a valid value for the Upload Year/Month Field.");
	  thisForm.J3.focus();
	  return(false);
	}
  }

 if (thisForm.J1.selectedIndex == 11 && (thisForm.J3.value.length > 4 || thisForm.J3.value.length < 4))
  {
    alert("Please enter a four digit year");
    thisForm.J3.focus();
    return (false);
  }
 if (thisForm.J1.selectedIndex > 0 && (thisForm.J3.value == "" || thisForm.J3.value == "No Value"))
  {
    alert("Please enter a value for the \"Search Criteria\" field.");
    thisForm.J3.focus();
    return (false);
  }
 if ((thisForm.J1.selectedIndex == 4 || thisForm.J1.selectedIndex == 8) && thisForm.J3.value.length > 20 && (thisForm.J2.selectedIndex < 10))
  {
    alert("Please enter at most 20 characters in the state code");
    thisForm.J3.focus();
    return (false);
  }
  return (true);
}

function ValidateA(thisForm)
{
  sel1 = thisForm.A1.selectedIndex;
  if (thisForm.A1.options[sel1].text=="Grant Amount" || thisForm.A1.options[sel1].text=="Grant Year" || thisForm.A1.options[sel1].text=="Grantmaker Assets" || thisForm.A1.options[sel1].text=="Grantmaker Giving" || thisForm.A1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.A2.selectedIndex;
    if (thisForm.A2.options[sel2].text=="contains" || thisForm.A2.options[sel2].text=="begins with" || thisForm.A2.options[sel2].text=="does not contain" || thisForm.A2.options[sel2].text=="ends with" || thisForm.A2.options[sel2].text=="is in list" || thisForm.A2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.A1.options[sel1].text + " field.");
       thisForm.A2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateB(thisForm)
{
  sel1 = thisForm.B1.selectedIndex;
  if ((thisForm.B2.selectedIndex == 0 && thisForm.B1.selectedIndex > 0) || (thisForm.B2.selectedIndex > 0 && thisForm.B1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.B1.options[sel1].text + " field.");
       thisForm.B2.focus();
       return (false);
	 }
  if (thisForm.B1.options[sel1].text=="Grant Amount" || thisForm.B1.options[sel1].text=="Grant Year" || thisForm.B1.options[sel1].text=="Grantmaker Assets" || thisForm.B1.options[sel1].text=="Grantmaker Giving" || thisForm.B1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.B2.selectedIndex;
    if (thisForm.B2.options[sel2].text=="contains" || thisForm.B2.options[sel2].text=="begins with" || thisForm.B2.options[sel2].text=="does not contain" || thisForm.B2.options[sel2].text=="ends with" || thisForm.B2.options[sel2].text=="is in list" || thisForm.B2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.B1.options[sel1].text + " field.");
       thisForm.B2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateC(thisForm)
{
  sel1 = thisForm.C1.selectedIndex;
  if ((thisForm.C2.selectedIndex == 0 && thisForm.C1.selectedIndex > 0) || (thisForm.C2.selectedIndex > 0 && thisForm.C1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.C1.options[sel1].text + " field.");
       thisForm.C2.focus();
       return (false);
	 }
  if (thisForm.C1.options[sel1].text=="Grant Amount" || thisForm.C1.options[sel1].text=="Grant Year" || thisForm.C1.options[sel1].text=="Grantmaker Assets" || thisForm.C1.options[sel1].text=="Grantmaker Giving" || thisForm.C1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.C2.selectedIndex;
    if (thisForm.C2.options[sel2].text=="contains" || thisForm.C2.options[sel2].text=="begins with" || thisForm.C2.options[sel2].text=="does not contain" || thisForm.C2.options[sel2].text=="ends with" || thisForm.C2.options[sel2].text=="is in list" || thisForm.C2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.C1.options[sel1].text + " field.");
       thisForm.C2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateD(thisForm)
{
  sel1 = thisForm.D1.selectedIndex;
  if ((thisForm.D2.selectedIndex == 0 && thisForm.D1.selectedIndex > 0) || (thisForm.D2.selectedIndex > 0 && thisForm.D1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.D1.options[sel1].text + " field.");
       thisForm.D2.focus();
       return (false);
	 }
  if (thisForm.D1.options[sel1].text=="Grant Amount" || thisForm.D1.options[sel1].text=="Grant Year" || thisForm.D1.options[sel1].text=="Grantmaker Assets" || thisForm.D1.options[sel1].text=="Grantmaker Giving" || thisForm.D1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.D2.selectedIndex;
    if (thisForm.D2.options[sel2].text=="contains" || thisForm.D2.options[sel2].text=="begins with" || thisForm.D2.options[sel2].text=="does not contain" || thisForm.D2.options[sel2].text=="ends with" || thisForm.D2.options[sel2].text=="is in list" || thisForm.D2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.D1.options[sel1].text + " field.");
       thisForm.D2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateE(thisForm)
{
  sel1 = thisForm.E1.selectedIndex;
  if ((thisForm.E2.selectedIndex == 0 && thisForm.E1.selectedIndex > 0) || (thisForm.E2.selectedIndex > 0 && thisForm.E1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.E1.options[sel1].text + " field.");
       thisForm.E2.focus();
       return (false);
	 }
  if (thisForm.E1.options[sel1].text=="Grant Amount" || thisForm.E1.options[sel1].text=="Grant Year" || thisForm.E1.options[sel1].text=="Grantmaker Assets" || thisForm.E1.options[sel1].text=="Grantmaker Giving" || thisForm.E1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.E2.selectedIndex;
    if (thisForm.E2.options[sel2].text=="contains" || thisForm.E2.options[sel2].text=="begins with" || thisForm.E2.options[sel2].text=="does not contain" || thisForm.E2.options[sel2].text=="ends with" || thisForm.E2.options[sel2].text=="is in list" || thisForm.E2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.E1.options[sel1].text + " field.");
       thisForm.E2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateF(thisForm)
{
  sel1 = thisForm.F1.selectedIndex;
  if ((thisForm.F2.selectedIndex == 0 && thisForm.F1.selectedIndex > 0) || (thisForm.F2.selectedIndex > 0 && thisForm.F1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.F1.options[sel1].text + " field.");
       thisForm.F2.focus();
       return (false);
	 }
  if (thisForm.F1.options[sel1].text=="Grant Amount" || thisForm.F1.options[sel1].text=="Grant Year" || thisForm.F1.options[sel1].text=="Grantmaker Assets" || thisForm.F1.options[sel1].text=="Grantmaker Giving" || thisForm.F1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.F2.selectedIndex;
    if (thisForm.F2.options[sel2].text=="contains" || thisForm.F2.options[sel2].text=="begins with" || thisForm.F2.options[sel2].text=="does not contain" || thisForm.F2.options[sel2].text=="ends with" || thisForm.F2.options[sel2].text=="is in list" || thisForm.F2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.F1.options[sel1].text + " field.");
       thisForm.F2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateG(thisForm)
{
  sel1 = thisForm.G1.selectedIndex;
  if ((thisForm.G2.selectedIndex == 0 && thisForm.G1.selectedIndex > 0) || (thisForm.G2.selectedIndex > 0 && thisForm.G1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.G1.options[sel1].text + " field.");
       thisForm.G2.focus();
       return (false);
	 }
  if (thisForm.G1.options[sel1].text=="Grant Amount" || thisForm.G1.options[sel1].text=="Grant Year" || thisForm.G1.options[sel1].text=="Grantmaker Assets" || thisForm.G1.options[sel1].text=="Grantmaker Giving" || thisForm.G1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.G2.selectedIndex;
    if (thisForm.G2.options[sel2].text=="contains" || thisForm.G2.options[sel2].text=="begins with" || thisForm.G2.options[sel2].text=="does not contain" || thisForm.G2.options[sel2].text=="ends with" || thisForm.G2.options[sel2].text=="is in list" || thisForm.G2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.G1.options[sel1].text + " field.");
       thisForm.G2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateH(thisForm)
{
  sel1 = thisForm.H1.selectedIndex;
  if ((thisForm.H2.selectedIndex == 0 && thisForm.H1.selectedIndex > 0) || (thisForm.H2.selectedIndex > 0 && thisForm.H1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.H1.options[sel1].text + " field.");
       thisForm.H2.focus();
       return (false);
	 }
  if (thisForm.H1.options[sel1].text=="Grant Amount" || thisForm.H1.options[sel1].text=="Grant Year" || thisForm.H1.options[sel1].text=="Grantmaker Assets" || thisForm.H1.options[sel1].text=="Grantmaker Giving" || thisForm.H1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.H2.selectedIndex;
    if (thisForm.H2.options[sel2].text=="contains" || thisForm.H2.options[sel2].text=="begins with" || thisForm.H2.options[sel2].text=="does not contain" || thisForm.H2.options[sel2].text=="ends with" || thisForm.H2.options[sel2].text=="is in list" || thisForm.H2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.H1.options[sel1].text + " field.");
       thisForm.H2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateI(thisForm)
{
  sel1 = thisForm.I1.selectedIndex;
  if ((thisForm.I2.selectedIndex == 0 && thisForm.I1.selectedIndex > 0) || (thisForm.I2.selectedIndex > 0 && thisForm.I1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.I1.options[sel1].text + " field.");
       thisForm.I2.focus();
       return (false);
	 }
  if (thisForm.I1.options[sel1].text=="Grant Amount" || thisForm.I1.options[sel1].text=="Grant Year" || thisForm.I1.options[sel1].text=="Grantmaker Assets" || thisForm.I1.options[sel1].text=="Grantmaker Giving" || thisForm.I1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.I2.selectedIndex;
    if (thisForm.I2.options[sel2].text=="contains" || thisForm.I2.options[sel2].text=="begins with" || thisForm.I2.options[sel2].text=="does not contain" || thisForm.I2.options[sel2].text=="ends with" || thisForm.I2.options[sel2].text=="is in list" || thisForm.I2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.I1.options[sel1].text + " field.");
       thisForm.I2.focus();
       return (false);
	 }
  }
  return(true);
}

function ValidateJ(thisForm)
{
  sel1 = thisForm.J1.selectedIndex;
  if ((thisForm.J2.selectedIndex == 0 && thisForm.J1.selectedIndex > 0) || (thisForm.J2.selectedIndex > 0 && thisForm.J1.selectedIndex == 0))
     {
       alert("Invalid Search Option for " + thisForm.J1.options[sel1].text + " field.");
       thisForm.J2.focus();
       return (false);
	 }
  if (thisForm.J1.options[sel1].text=="Grant Amount" || thisForm.J1.options[sel1].text=="Grant Year" || thisForm.J1.options[sel1].text=="Grantmaker Assets" || thisForm.J1.options[sel1].text=="Grantmaker Giving" || thisForm.J1.options[sel1].text=="Upload Year/Month")
  {
    sel2 = thisForm.J2.selectedIndex;
    if (thisForm.J2.options[sel2].text=="contains" || thisForm.J2.options[sel2].text=="begins with" || thisForm.J2.options[sel2].text=="does not contain" || thisForm.J2.options[sel2].text=="ends with" || thisForm.J2.options[sel2].text=="is in list" || thisForm.J2.options[sel2].text=="is not in list") 
	{
       alert("Invalid Search Option for " + thisForm.J1.options[sel1].text + " field.");
       thisForm.J2.focus();
       return (false);
	 }
  }
  return(true);
}
