function setStatusBar(messageText) { window.status = messageText; } function WriteCookie (cookieName, cookieValue, expiry) { var expDate = new Date(); if(expiry) { expDate.setTime (expDate.getTime() + expiry); document.cookie = cookieName + "=" + escape (cookieValue) + "; expires=" + expDate.toGMTString() +"; path=/" + document.forms[0].WebDB.value; } else { document.cookie = cookieName + "=" + escape (cookieValue); } // setStatusBar('Language preference stored'); clearID = setTimeout("setStatusBar('')", 3000); } function getCookie(Name) { var search = Name + "="; // Are there are any cookies available if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) // if cookie exists if (offset != -1) { offset += search.length //set index of beginning of value end = document.cookie.indexOf(";", offset) // set index of end of cookie value if (end == -1) { end = document.cookie.length; } //Here we are redirecting the user to the menu page //in the language specified in the cookie var language = document.cookie.substring(offset, end); alert(language) return unescape(language) } } } function doEditText(targetArea, targetDiv) { var preventCache = new Date(); var url = "/" + document.forms[0].WebDB.value + "/Editor?openform&targetArea=" + targetArea + "&targetDiv=" + targetDiv + "&preventcache=" + preventCache.getTime() + "&end"; var listWindow = window.open(url, "ListWindow", "width=630, height=465, statusbar=no, toolbar=no, scrollbars=no, location=no, menubar=no"); } function insertLink(target) { var url = "/" + document.forms[0].WebDB.value + "/InsertLinkDialog?openform&target=" + target; var winopts = "height=300, width=650, statusbar=yes, toolbar=no, scrollbars=yes, location=no, menubar=no"; var listWindow = window.open(url, "ListWindow", winopts); } function insertLinkComp(target) { var url = "/" + document.forms[0].WebDB.value + "/InsertLinkDialogComp?openform&target=" + target; var winopts = "height=300, width=650, statusbar=yes, toolbar=no, scrollbars=yes, location=no, menubar=no"; var listWindow = window.open(url, "ListWindow", winopts); } function insertLinkBox1(target) { var url = "/" + document.forms[0].WebDB.value + "/InsertLinkDialogBox1?openform&target=" + target; var winopts = "height=300, width=650, statusbar=yes, toolbar=no, scrollbars=yes, location=no, menubar=no"; var listWindow = window.open(url, "ListWindow", winopts); } function insertLinkBox2(target) { var url = "/" + document.forms[0].WebDB.value + "/InsertLinkDialogBox2?openform&target=" + target; var winopts = "height=300, width=650, statusbar=yes, toolbar=no, scrollbars=yes, location=no, menubar=no"; var listWindow = window.open(url, "ListWindow", winopts); } function showLink(Link) { var winOpts = "toolbar=no,status=no,location=no,resizable=no,scrollbars=yes,width=795,height=640"; var winName = "newWindow"; var winURL = Link; window.open(winURL, winName, winOpts) }