--- zogiLib/js/baselib.js 2005/11/08 18:10:10 1.6 +++ zogiLib/js/baselib.js 2006/07/14 12:42:05 1.7 @@ -17,13 +17,13 @@ Foundation, Inc., 59 Temple Place - Suit Authors: Christian Luginbuehl, 01.05.2003 (first version) DW 24.03.2004 (Changed for digiLib in Zope) - Robert Casties, 2.11.2004 + Robert Casties, 14.7.2006 */ function base_init() { // init function - baseScriptVersion = "1.2"; + baseScriptVersion = "1.2.1"; dlParams = new Object(); browserType = getBrowserType(); } @@ -486,6 +486,17 @@ function showElement(elem, show) { return true; } +function isElementVisible(elem) { + // returns of the is shown or hidden + if (elem.style) { + return (elem.style.visibility == "visible"); + } else if (defined(elem.visibility)) { + return (elem.visibility == "show"); + } else { + alert("iselementvisible: no style nor layer property!"); + } +} + function evtPosition(evt) { // returns the on-screen Position of the Event var x;