//	Make sure that the required information on this form is valid!
function CheckFormValues()
{
	var StrData1, StrData2

	// Did the user put in some basic information?
	StrData1 = document.forms[0].school.value
	StrData2 = document.forms[0].prof.value

	if(IsFieldBlank(StrData1) && IsFieldBlank(StrData2))
	{
        alert("You must enter a school or instructor name!");
        return false;
	}

	// else, OK
	return true;
}

function expandRow(id, max)
{
	var elm = null;
	var row;
	if (document.getElementById)
  {
    for(var i = 0; i < max; i++)
    {
			elm = document.getElementById(id + i);
			row = document.getElementById(id + 'p');
			if (!elm)
			{
				// browser not supported or element not found
			}
			else if (elm.style)
			{
				// Gecko, Internet Explorer 4+, Opera 5+
				if (elm.style.display == "none")
				{
					elm.style.display = "";
					row.src = "art/section_piece_1_m.gif";
				}
				else
				{
					elm.style.display = "none";
					row.src = "art/section_piece_1.gif";
				}
			}
			else
			{
				// Navigator 4
				elm.visibility = "show"
				row.src = "art/section_piece_1_m.gif";
			}
		}
  }
 }
