--- zogiLib/js/Attic/dl_lib.js 2004/06/03 18:13:29 1.5 +++ zogiLib/js/Attic/dl_lib.js 2004/06/04 16:07:49 1.6 @@ -191,14 +191,15 @@ var picElem = null; function dl_init() { elemScaler = getElement("scaler"); - if (! elemScaler) { - return false; - } picElem = getElement("pic", true); if (picElem == null) { // in N4 pic is in the scaler layer picElem = elemScaler.document.images[0]; } + if ((!elemScaler)||(!picElem)) { + alert("Sorry, zogilib doesn't work here!"); + return false; + } // give a name to the window containing digilib top.window.name = "digilib"; // put the query parameters (sans "?") in the parameters array