
  function winopen(id) {
    window.open("display.php?id=" + id, "w" + id, "width=640,height=480,top=50,left=50,scrollbars=1");
  }

  function display(id) {
    document.getElementById(id).style.display="";
  }

  function undisplay(id) {
    document.getElementById(id).style.display="none";
  }


  /**
   * window.onload loads FCKeditor or HTMLArea
   */
  window.onload = function() {

    if (!document.getElementById("htmledit"))
      return false;

    if (window.initHTMLArea) {
      initHTMLArea("htmledit");
    } else if (window.initFCKeditor) {
      initFCKeditor("htmledit");
    }
  }

  /**
   * Initialize FCKeditor
   */
/*
  function initFCKeditor(id) {

    var head = document.getElementsByTagName("head")[0];

    // append initializing fckeditor.js script to head tag
    var script = document.createElement("script");
    script.src = "mods/html/fckeditor/fckeditor.js";
    head.appendChild(script);

    // append local fckeditor.js with configuration
    var script2 = document.createElement("script");
    script2.src = "fckeditor.js";
    head.appendChild(script2);
  }
*/


  /*
   * Initialize HTMLArea 3.0
   */
/*
  _editor_url = "mods/html/htmlarea/";
  _editor_lang = "cz";

  function initHTMLArea(id) {

    var head = document.getElementsByTagName("head")[0];

    // load htmlarea.js instead of <script src="..." ></script> in OUTPUT header element
    var script = document.createElement("script");
    script.src = _editor_url + "htmlarea.js";
    head.appendChild(script);

    // append local htmlarea.js script with configuration
    var script2 = document.createElement("script");
    script2.src = "htmlarea.js";
    head.appendChild(script2);
  }
*/
