--- rat/client/Attic/code.html 2001/03/13 15:35:08 1.21 +++ rat/client/Attic/code.html 2001/03/15 18:03:57 1.25 @@ -1472,7 +1472,7 @@ function srchclear() { // ------------------------------------------------------- Closes search window function srchclose() { - if (srch) { + if (srch && !srch.closed) { srch.close(); } } @@ -2505,8 +2505,8 @@ function leave() { if (!inf.closed) { inf.close(); } - if (!srch.closed) { - srch.close(); + if (srch && !srch.closed) { + srchclose(); } }