function Comm_Name()
{
	comm = document.CommMinForm.CiScope1.selectedIndex;
	datesel = document.CommMinForm.CiDate.selectedIndex;
	commname = document.CommMinForm.CiScope1.options[comm].text;
	shortval = new Array("sc","sp","ie","ex","ga","sd","ap","at","gr","cc","cz","cp","fn","hs","lr","pa","pt","pp","pr","pv","rf","as","op","cs","ss","rc","acp","al","ad","ca","ch","cm","ce","dm","ec","ev","eq","hg","rs","cg","hl");
	highval = new Array("All","20110331","20100331","20090331","20080331","20070331","20060331","20050331","20040331","20030331","20020331","20010331","20000331","19990331","19980331","19970331","19960331");
	document.CommMinForm.CommName.value = commname;
	document.CommMinForm.ShortVal.value = shortval[comm];
	document.CommMinForm.HighVal.value = highval[datesel];
}


function Validate_Form()
{
  if (document.SearchForm.CiRestriction1.value.length < 1)
  {
    alert("Please enter at least 1 character in the \"Query\" field.");
    document.SearchForm.CiRestriction1.focus();
    return (false);
  }

  if (document.SearchForm.CiRestriction1.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Query\" field.");
    document.SearchForm.CiRestriction1.focus();
    return (false);
  }
  return (true);
}


function Validate_CommDate()
{
  if (document.CommMinForm.CiScope1.selectedIndex == 24)
  {
    alert("Invalid Committee. Please select a valid committee to search on.");
    document.CommMinForm.CiScope1.selectedIndex = 0;
  }
}


function Validate_Comm()
{
  if (document.SearchForm.CiScope1.selectedIndex == 25)
  {
    alert("Invalid Committee. Please select a valid committee to search on.");
    document.SearchForm.CiScope1.selectedIndex = 0;
  }
}
