  <!-- This javascript was copied from: -->
  <!-- http://javascript.internet.com/forms/form-focus.html-->
  <!-- It places focus in the first text element of the form (if any) -->

  <!-- Original:  Tom Khoury (twaks@yahoo.com) -->

  <!-- This script and many more are available free online at -->
  <!-- The JavaScript Source!! http://javascript.internet.com -->

  <!-- Begin
  function placeFocus()
  {
    if ( document.forms.length > 0 ) {
      for ( f = 0; f < document.forms.length; f++ ) {
        if ( document.forms[f].name == 'quickSearchForm' )
          continue;
        var field = document.forms[f];
        for ( i = 0; i < field.length; i++ ) {
          if( !field.elements[i].type )
            continue;
          if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea"))
          {
            field.elements[i].focus();
            return;
          }
        }
      }
    }
  }
  //  End -->


/*
  <!-- Begin
  function placeFocus()
  {
    // don't place focus in a page with an anchor 
    // so the page doesn't scroll back up to the focused field
    loc = "" + window.location;
    if ( loc.indexOf('#') != -1 )
      return;
  
    bFound = false;
    if ( document.forms.length > 0 ) {
      var textFields = new Array();
      var textFieldCount = 0;
      for ( f = 0; f < document.forms.length; f++ ) {
        var field = document.forms[f];
        for ( i = 0; i < field.length; i++ ) {
          if( !field.elements[i].type )
            continue;
          if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea"))
            textFields[textFieldCount++] = document.forms[f].elements[i];
        } // for i
      } // for f
    } // if
    
    if ( textFieldCount == 1 )
      textFields[0].focus();
    else if ( textFieldCount > 1 )
      textFields[1].focus();
  }
  //  End -->
*/

function canseeBody(checked, name)
{
  if(navigator.appName.indexOf("Microsoft") > -1){
    var canSee = 'block'
  } else {
    var canSee = 'table-row';
  }
  
  if (checked) { 
    document.getElementById(name+'_body').style.display='none'; 
  } else { 
    document.getElementById(name+'_body').style.display=canSee; 
  }
}// canseeBody
