function stLayer(stLayerName) {      if(document.all) {        return document.all.tags("div")[stLayerName]      } else {        return document.getElementById(stLayerName)      }    }    function showLayer(layerName, layerState) {      stLayer(layerName).style.visibility = layerState    }    function setDialogPaneObject(frame) {      this.dialogPaneObject = frame    }    function getDialogPaneObject() {      return this.dialogPaneObject    }    function setPreview(section, plIndex) {      showDialogPane("pages/preview.php?section=" + section + "&plIndex=" + plIndex)    }    function setPublish() {      showDialogPane("pages/publish.php?publish=null")    }    function setAncPgDoc(form) {      this.apDoc = form    }    function getAncPgDoc() {      return this.apDoc    }    function showTermsOfUse() {      showDialogPane("pages/termsofuse.php")    }    function showDialogPane(page) {      getDialogPaneObject().src = page      viewVallumSheet("visible")      showLayer("dialogPane", "visible")      showLayer("close", "visible")    }    function hideDialogPane() {      getDialogPaneObject().src = "pages/empty.html"      viewVallumSheet("hidden")      showLayer("dialogPane", "hidden")      showLayer("close", "hidden")    }        function viewVallumSheet(vis) {      showLayer("vallumSheet", vis)    }        function doSearch(search) {      showDialogPane("pages/search.php?s=" + search)    }    <!-- Check to see if the website should open home page or a different page -->    if(this.location.search.length > 0) {      tempURL = unescape(location.search.substr(1))      tempURLArray = tempURL.split("=")      frameURL = tempURLArray[1]    } else {      frameURL = "pages/home.php"    }