<!--
function showLayer(id)			// div id
{
   if (document.getElementById)
      document.getElementById(id).style.visibility = "visible";
   else if (document.all)
      document.all[id].style.visibility = "visible";
   else if (document.layers)
      document.layers[id].visibility = "show";
}

function hideLayer(id)			// div id
{
   if (document.getElementById)
      document.getElementById(id).style.visibility = "hidden";
   else if (document.all)
      document.all[id].style.visibility = "hidden";
   else if (document.layers)
      document.layers[id].visibility = "hide";
}

function submitSearchForm()
{
   var targetPage;
   var index = document.forms["searchForm"].elements["id"].selectedIndex;

   switch (index)
   {
      case 0: targetPage = "subjectbrowse.php";  break;
      case 1: targetPage = "categorybrowse.php"; break;
      case 2: targetPage = "categorybrowse.php"; break;
      case 3: targetPage = "microscalelist.php"; break;
      case 4: targetPage = "title.php";          break;
      default : targetPage = "";
   }

   if (targetPage != "") document.forms["searchForm"].action = targetPage;
   else                  return false;

   document.forms["searchForm"].submit();
   return true;
}
//-->