  <!-- 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() 
  {
    for (f = 0; f < document.forms.length; f++)
    {
      var field = document.forms[f];
      
      if ( field.id == "top_login_form" || field.id == "quick_search_form" )
        continue;

      for (i = 0; i < field.length; i++)
      {
        if( !field.elements[i].type )
          continue;

        if ( (field.elements[i].type == "text") || (field.elements[i].type == "textarea") ) 
        {
          if (field.elements[i].name != "comment[body]")
          {
            field.elements[i].focus();
            return;
          }
        }
      }
    }
  }
  //  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


function focusOnDescription()
{
  var desc = document.getElementById('entry_description');
  if ( desc != null ) {
    desc.focus();
  }
}

function focusOnTitle()
{
  var desc = document.getElementById('entry_title');
  if ( desc != null ) {
    desc.focus();
  }
}