--- rat/client/Attic/code.html 2002/05/11 01:30:28 1.52 +++ rat/client/Attic/code.html 2002/05/24 16:39:23 1.56 @@ -4,7 +4,7 @@ The LearningOnline Network Resource Assembly Tool // -// $Id: code.html,v 1.52 2002/05/11 01:30:28 www Exp $ +// $Id: code.html,v 1.56 2002/05/24 16:39:23 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -118,6 +118,12 @@ var idxflag=-1; // 1 means currently ope // -1 means never yet opened/defined var idxmode=''; +var copydx; +var copydxflag=-1; // 1 means currently open + // 0 means closed (but has been open) + // -1 means never yet opened/defined +var copydxmode=''; + var parm; var parmflag=-1; // 1 means currently open // 0 means closed (but has been open) @@ -1576,6 +1582,10 @@ function idxclear() { idx.document.clear(); } +// --------------------------------------------------------- Clears copy window +function copydxclear() { + copydx.document.clear(); +} // ------------------------------------------------------- Clears search window function srchclear() { srch.document.clear(); @@ -1594,6 +1604,14 @@ function idxclose() { } } +// --------------------------------------------------------- Closes copy window +function copydxclose() { + if (copydx && !copydx.closed) { + copydxflag=0; + copydx.close(); + } +} + // ------------------------------------------------------- Closes search window function srchclose() { if (srch && !srch.closed) { @@ -1619,6 +1637,19 @@ function idxopen(mode) { idx.focus(); } +// ----------------------------------------------------------- Open copy window +function copydxopen(mode) { + var options="scrollbars=1,resizable=1,menubar=0"; + copydxmode=mode; + copydxflag=1; + copydx=open("",'copydxout',options); + copydx.document.clear(''); + copydx.document.writeln( + '