      function switchVisible(name) {
              var obj = document.getElementById(name);
              if (obj.style.display == "none")
                  obj.style.display = "block";
              else
                  obj.style.display = "none";
              return;
      }

      function view(name) {
         document.getElementById(name).style.visibility = "visible";
      }

      function hide(name) {
         document.getElementById(name).style.visibility = "hidden";
      }

      function enabledisable(box, input) {
         var input = document.getElementById(input);
         if (!box.checked) {
            input.disabled = true;
            input.style.background = "rgb(235,235,228);";
         } else {
            input.disabled = false;
            input.style.background = "rgb(255,255,255)";
         }
            
      }

      function openHelp() {
        var file = "help.php";
        var help = window.open(file, "help", "height=800,width=800,resizable=1,menubar=0,directories=0,scrollbars=1");
        if (window.focus)
           help.focus();
        return false;
      }

    function submit_form()
    {
       document.getElementById("submit").style.display = "none";
       document.getElementById("processing").style.display = "inline";
       return true;
    }

    function addImage(id)
    {
        var file = "rte/insert_image.php";
        var addImage = window.open(file, "addImage", "height=150,width=380,resizable=0,menubar=0,directories=0,scrollbars=0");
        if (window.focus)
           addImage.focus();
    }