<!--
//==========================================================================//
//   Function:   searchSelectBox(in_sFormName, in_sInputName, in_sSelectName)
//   Purpose: Acts as a "searchable" input for a given select box.
//   Parameters:
//      in_sFormName    - The form name where the elements live
//      in_sInputName    - The "search input element name.
//      in_sSelectName   - The select box to search against.
//
//==========================================================================//
function searchSelectBox(in_sFormName, in_sInputName, in_sSelectName)
{
   sSearchString = document.forms[in_sFormName].elements[in_sInputName].value.toUpperCase();
   iSearchTextLength = sSearchString.length;

   for (j=0; j < document.forms[in_sFormName].elements[in_sSelectName].options.length; j++)
   {
      sOptionText = document.forms[in_sFormName].elements[in_sSelectName].options[j].text;
      sOptionComp = sOptionText.substr(0, iSearchTextLength).toUpperCase();

      if(sSearchString == sOptionComp)
      {
         document.forms[in_sFormName].elements[in_sSelectName].selectedIndex = j;
         break;
      }
   }
}
//-->

function switchlayer(Layer_Name)
{
  var GECKO = document.getElementById? 1:0 ;
  var NS = document.layers? 1:0 ;
  var IE = document.all? 1:0 ;

  if (GECKO)
       {document.getElementById(Layer_Name).style.display=
	   (document.getElementById(Layer_Name).style.display=='block') ? 'none' : 'block';
	   }
  else if (NS)
       {document.layers[Layer_Name].display=(document.layers[Layer_Name].display==
	   'block') ? 'none' : 'block';
	   }
  else if (IE)
       {	 	   
	   document.all[Layer_Name].style.display=(document.all[Layer_Name].style.display==
	   'block') ? 'none' : 'block';	
	   }
	
}
function skip () {
  this.blur();
}
function toggleField (field) {
  if (document.all || document.getElementById)
    field.readOnly = !field.readOnly;
  else if (field.onfocus)
    field.onfocus = null
  else field.onfocus = skip;
}
