function toggleToolbarDisplay(textareaId)
{
  // var delta=parseInt(editor._toolbar.offsetheight); //todo -  would be nice to determine height programmatically
      var delta = 49;

  var i;
  // find the editor object for the given textareaId
  for (i=0; i<document.htmlareas.length; i++)
  {
    if (document.htmlareas[i][0] == textareaId)
    {
      // hide or show the editor
      var editor = document.htmlareas[i][1];
      var hidden = document.htmlareas[i][2];
      var height = parseInt(editor._iframe.style.height);

      if (!hidden)
      {
        // hide it
        editor._toolbar.style.display = "none";
        editor._iframe.style.height = height + delta + "px";
        document.htmlareas[i][2] = true;
      }
      else
      {
        // show it
        editor._toolbar.style.display = "block";
          editor._iframe.style.height = height - delta + "px";
          document.htmlareas[i][2] = false;
      }

      editor.focusEditor();
    }
  }
}
/*
 * Toggle: show or hide the docuemnt editor toolbar
 * parameter:  textareaId the HTMLArea id of the textarea
 */
show or hide the docuemnt editor toolbar
parameter:  textareaId the HTMLArea id of the textarea
show or hide the docuemnt editor toolbar parameter : textareaId the HTMLArea id of the textarea
function toggleToolbarDisplay(textareaId)
{
      var delta = 49;
  var i;
  for (i=0; i<document.htmlareas.length; i++)
  {
    if (document.htmlareas[i][0] == textareaId)
    {
      var editor = document.htmlareas[i][1];
      var hidden = document.htmlareas[i][2];
      var height = parseInt(editor._iframe.style.height);
      if (!hidden)
      {
        editor._toolbar.style.display = "none";
        editor._iframe.style.height = height + delta + "px";
        document.htmlareas[i][2] = true;
      }
      else
      {
        editor._toolbar.style.display = "block";
          editor._iframe.style.height = height - delta + "px";
          document.htmlareas[i][2] = false;
      }
      editor.focusEditor();
    }
  }
}
function toggleToolbarDisplay ( textareaId ) { var delta = 49 ; var i ; for ( i = 0 ; i < document . htmlareas . length ; i ++ ) { if ( document . htmlareas [ i ] [ 0 ] == textareaId ) { var editor = document . htmlareas [ i ] [ 1 ] ; var hidden = document . htmlareas [ i ] [ 2 ] ; var height = parseInt ( editor . _iframe . style . height ) ; if ( ! hidden ) { editor . _toolbar . style . display = "none" ; editor . _iframe . style . height = height + delta + "px" ; document . htmlareas [ i ] [ 2 ] = true ; } else { editor . _toolbar . style . display = "block" ; editor . _iframe . style . height = height - delta + "px" ; document . htmlareas [ i ] [ 2 ] = false ; } editor . focusEditor ( ) ; } } }
Toggle: show or hide the docuemnt editor toolbar
 parameter:  textareaId the HTMLArea id of the textarea
Toggle : show or hide the docuemnt editor toolbar parameter : textareaId the HTMLArea id of the textarea
// var delta=parseInt(editor._toolbar.offsetheight); //todo -  would be nice to determine height programmatically // find the editor object for the given textareaId // hide or show the editor // hide it // show it