version 1.53, 2002/05/14 21:09:14
|
version 1.56, 2002/05/24 16:39:23
|
Line 118 var idxflag=-1; // 1 means currently ope
|
Line 118 var idxflag=-1; // 1 means currently ope
|
// -1 means never yet opened/defined |
// -1 means never yet opened/defined |
var idxmode=''; |
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 parm; |
var parmflag=-1; // 1 means currently open |
var parmflag=-1; // 1 means currently open |
// 0 means closed (but has been open) |
// 0 means closed (but has been open) |
Line 1576 function idxclear() {
|
Line 1582 function idxclear() {
|
idx.document.clear(); |
idx.document.clear(); |
} |
} |
|
|
|
// --------------------------------------------------------- Clears copy window |
|
function copydxclear() { |
|
copydx.document.clear(); |
|
} |
// ------------------------------------------------------- Clears search window |
// ------------------------------------------------------- Clears search window |
function srchclear() { |
function srchclear() { |
srch.document.clear(); |
srch.document.clear(); |
Line 1594 function idxclose() {
|
Line 1604 function idxclose() {
|
} |
} |
} |
} |
|
|
|
// --------------------------------------------------------- Closes copy window |
|
function copydxclose() { |
|
if (copydx && !copydx.closed) { |
|
copydxflag=0; |
|
copydx.close(); |
|
} |
|
} |
|
|
// ------------------------------------------------------- Closes search window |
// ------------------------------------------------------- Closes search window |
function srchclose() { |
function srchclose() { |
if (srch && !srch.closed) { |
if (srch && !srch.closed) { |
Line 1619 function idxopen(mode) {
|
Line 1637 function idxopen(mode) {
|
idx.focus(); |
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( |
|
'<html><body bgcolor="#FFFFFF"><h1>Group Copy from Map</h1>'); |
|
copydx.document.writeln('</body></html>'); |
|
copydx.focus(); |
|
} |
|
|
// --------------------------------------------------------- Open search window |
// --------------------------------------------------------- Open search window |
function srchopen(mode) { |
function srchopen(mode) { |
var options="scrollbars=1,resizable=1,menubar=0"; |
var options="scrollbars=1,resizable=1,menubar=0"; |
Line 1649 function idxcheck(mode) {
|
Line 1680 function idxcheck(mode) {
|
idx.focus(); |
idx.focus(); |
} |
} |
|
|
|
// -------------------------------------------------------- Do idx status check |
|
function copydxcheck(mode) { |
|
if (!copydx || copydx.closed || copydxmode!=mode) { |
|
copydxopen(mode); |
|
} |
|
copydx.focus(); |
|
} |
|
|
// ---------------------------------------------------- Handles "click to edit" |
// ---------------------------------------------------- Handles "click to edit" |
function handler(infostr) { |
function handler(infostr) { |
var k; |
var k; |
Line 1985 function rescompare(a,b) {
|
Line 2024 function rescompare(a,b) {
|
for (k=1;k<data1.length;k++) { |
for (k=1;k<data1.length;k++) { |
if (data1[k]==data2[0]) { rvalue--; } |
if (data1[k]==data2[0]) { rvalue--; } |
} |
} |
for (k=1;k<data3.length;k++) { |
for (k=1;k<data2.length;k++) { |
if (data2[k]==data1[0]) { rvalue++; } |
if (data2[k]==data1[0]) { rvalue++; } |
} |
} |
if (rvalue==0) { rvalue=data2.length-data1.length; } |
if (rvalue==0) { rvalue=data2.length-data1.length; } |
Line 2359 function sortobjs() {
|
Line 2398 function sortobjs() {
|
data2=objsort[j].split(':'); |
data2=objsort[j].split(':'); |
dol=data1.length; |
dol=data1.length; |
dtl=data2.length; |
dtl=data2.length; |
if (dol+dtl<1000) { |
if (dol+dtl<200) { |
for (kj=1;kj<dol;kj++) { |
for (kj=1;kj<dol;kj++) { |
if (data1[kj]==data2[0]) { |
if (data1[kj]==data2[0]) { |
for (ij=1;ij<dtl;ij++) { |
for (ij=1;ij<dtl;ij++) { |
Line 2631 function groupimport() {
|
Line 2670 function groupimport() {
|
idxcheck('groupimport'); |
idxcheck('groupimport'); |
} |
} |
|
|
|
function groupcopy() { |
|
copydxcheck('groupsec'); |
|
} |
|
|
// -------------------------------------------------------------- Store changes |
// -------------------------------------------------------------- Store changes |
function storechange() { |
function storechange() { |
var k; |
var k; |
Line 2687 function leave() {
|
Line 2730 function leave() {
|
srchclose(); |
srchclose(); |
} |
} |
if (idx && !idx.closed) { |
if (idx && !idx.closed) { |
srchclose(); |
idxclose(); |
|
} |
|
if (copydx && !copydx.closed) { |
|
copydxclose(); |
} |
} |
} |
} |
|
|
Line 2707 function leave() {
|
Line 2753 function leave() {
|
<td bgcolor="#ffffcc"><a href="javascript:redo();"><b>R</b>edo</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:redo();"><b>R</b>edo</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupsearch();"><b>G</b>roup search</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupsearch();"><b>G</b>roup search</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupimport();"><b>G</b>roup import</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:groupimport();"><b>G</b>roup import</a> </td> |
|
<td bgcolor="#ffffcc"><a href="javascript:groupcopy();"><b>G</b>roup copy</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:graphdef='no';save();storechange();"><b>S</b>ave map</a> </td> |
<td bgcolor="#ffffcc"><a href="javascript:graphdef='no';save();storechange();"><b>S</b>ave map</a> </td> |
<td bgcolor="#ccffcc"><a href="javascript:storechange();"><b>S</b>ave map and layout</a> </td> |
<td bgcolor="#ccffcc"><a href="javascript:storechange();"><b>S</b>ave map and layout</a> </td> |
</tr></table> |
</tr></table> |