--- rat/client/Attic/code.html 2001/03/13 14:10:09 1.20 +++ rat/client/Attic/code.html 2001/03/13 15:35:08 1.21 @@ -1286,6 +1286,8 @@ function infoclear() { } inf.document.writeln(''); inf.document.close(); + srchclose(); + parent.top.focus(); parent.mapout.focus(); notclear=1; @@ -1470,7 +1472,9 @@ function srchclear() { // ------------------------------------------------------- Closes search window function srchclose() { - srch.close(); + if (srch) { + srch.close(); + } } // --------------------------------------------------------- Open search window @@ -1478,6 +1482,7 @@ function srchclose() { function srchopen() { var options="scrollbars=1,resizable=1,menubar=0"; srch=open("/adm/searchcat?catalogmode=interactive","srchout",options); + srch.focus(); } // -------------------------------------------- Interface function to searching @@ -1489,9 +1494,10 @@ function search() { // ------------------------------------------------------- Do srch status check function srchcheck() { - if (srch.closed) { + if (!srch || srch.closed) { srchopen(); } + srch.focus(); } // ---------------------------------------------------- Handles "click to edit" @@ -1589,7 +1595,7 @@ function handler(infostr) { +'' +'External:Search' + inf.document.write('>Search' +'' +'