--- rat/client/Attic/code.html 2001/07/04 19:59:24 1.41 +++ rat/client/Attic/code.html 2002/03/01 14:58:27 1.49 @@ -3,6 +3,32 @@ @@ -101,7 +130,6 @@ function testfunction() { } // ------------------------------------------------ Insert a row into the table - function insertrow(j,ex1,ex2) { var kj; stored=0; @@ -120,7 +148,7 @@ function insertrow(j,ex1,ex2) { objects=objects1+':'+objects2; data1=objects.split(':'); for (kj=0;kj'); - if ((what!='') && (what!=undefined)) { - if ((obj1!='') && (obj1!=undefined)) { + if ((what!='') && (typeof(what)!="undefined")) { + if ((obj1!='') && (typeof(obj1)!="undefined")) { objref="'"+obj1+"'"; parent.mapout.document.write (''); } } else { @@ -1076,7 +1077,6 @@ function drawcell (rtype,ctype,what,cm,o } // --------------------------------------------------------- Color of resources - function rescolor (ext,typ) { var rc; var gc; var bc; if (ext=='true') { bc='55'; } else { bc='99'; } @@ -1087,7 +1087,6 @@ function rescolor (ext,typ) { } // -------------------------------------------------------- Color of conditions - function condcolor(typ) { if (typ=='stop') { return '#EEAAAA'; } if (typ=='force') { return '#AAAAEE'; } @@ -1095,7 +1094,6 @@ function condcolor(typ) { } // ----------------------------------------------------------------- Draw a row - function drawrow (jid) { var j; var jk; var k; var ck; var rtype; var objd1=new Array(); @@ -1110,7 +1108,7 @@ if (rowtype[jid]!=0) { } parent.mapout.document.writeln(''); - if ((rowcont[jid]!='') && (rowcont[jid]!=undefined)) { + if ((rowcont[jid]!='') && (typeof(rowcont[jid])!="undefined")) { data2=rowcont[jid].split(':'); for (jk=0;jkmiddle) { for (k=middle+1;kleftin;k--) { - if ((colmap4[k]!='') && (colmap4[k]!=undefined)) { + if ((colmap4[k]!='') && (typeof(colmap4[k])!="undefined")) { colmap[k]='lrt'; } else { colmap[k]='lr'; @@ -1197,7 +1195,7 @@ if (rowtype[jid]!=0) { if (rightoutmiddle) { - if ((colmap3[middle]!='') && (colmap3[middle]!=undefined)) { + if ((colmap3[middle]!='') && (typeof(colmap3[middle])!="undefined")) { colmap2[middle]='rtdl'; } else { colmap2[middle]='rtl'; @@ -1206,7 +1204,7 @@ if (rowtype[jid]!=0) { } if (leftoutleftout;k--) { - if ((colmap3[k]!='') && (colmap3[k]!=undefined)) { + if ((colmap3[k]!='') && (typeof(colmap3[k])!="undefined")) { colmap2[k]='rld'; } else { colmap2[k]='rl'; @@ -1216,7 +1214,7 @@ if (rowtype[jid]!=0) { } if (rightout>middle) { for (k=middle+1;kInsert Resource Into Link'); - - } else { if (data1[0]=='r') { if (linkmode!=0) { @@ -1845,7 +1818,6 @@ function handler(infostr) { } // ----------------------------------------------------- Clicks on empty fields - function empty(rid,k) { var cid=findcol(k); var lcol=k-1; @@ -1868,7 +1840,7 @@ function empty(rid,k) { +');">Insert resource'); if ((mostrecent!=0) && (objcont[mostrecent]!='') && - (objcont[mostrecent]!=undefined)) { + (typeof(objcont[mostrecent])!="undefined")) { inf.document.writeln(''); } -// ---------------------------------------- Draw simple table instead of graph +// ---------------------------------------- Draw simple table instead of graph function simpletabledraw() { var objsorted=new Array(); var robjs=new Array(); @@ -2261,7 +2228,7 @@ function simpletabledraw() { var urlparts=new Array; var condid; var sortstr=sortobjs(); - if ((sortstr!='') && (sortstr!=undefined)) { + if ((sortstr!='') && (typeof(sortstr)!="undefined")) { objsorted=sortstr.split('&'); for (k=0;k'); var k; for (k=0;k1) { undopointer--; @@ -2588,7 +2548,6 @@ function undo() { } // -------------------------------------------------------------- Redo function - function redo() { if (undopointer - -Toggle Display Mode -Zoom Out -Zoom In -Condense -Straighten -Revert -Undo -Redo -Group Search -Group Import -Save Map + + + +Toggle display +Zoom out +Zoom in +Condense +Straighten +Revert +Undo +Redo +Group search +Group import +Save map + + +