version 1.54, 2002/05/24 18:31:13
|
version 1.57, 2002/05/24 20:59:34
|
Line 61 March 2002 Matthew Hall
|
Line 61 March 2002 Matthew Hall
|
var statustop = ''; |
var statustop = ''; |
var statusbot = ''; |
var statusbot = ''; |
var active = 0; |
var active = 0; |
|
var dislocked = 1; |
|
|
var imgpath='/res/adm/pages/'; |
var imgpath='/res/adm/pages/'; |
|
|
Line 68 var currentURL='';
|
Line 69 var currentURL='';
|
var currentStale=1; |
var currentStale=1; |
var menucltim; |
var menucltim; |
|
|
|
var clock=new Date(); |
|
|
// not used (yet) |
// not used (yet) |
// var w_Annotator; |
// var w_Annotator; |
// var w_bmquery; |
// var w_bmquery; |
Line 100 for (var i=1;i<=3;i++) {
|
Line 103 for (var i=1;i<=3;i++) {
|
var clienthost=window.location.host; |
var clienthost=window.location.host; |
var clientwindow=opener; |
var clientwindow=opener; |
|
|
|
function advanceclock() { |
|
clock.setTime(clock.getTime()+1000); |
|
var secs=""+clock.getSeconds(); |
|
if (secs.length<2) { secs="0"+secs; } |
|
var mins=""+clock.getMinutes(); |
|
if (mins.length<2) { mins="0"+mins; } |
|
var hours=""+clock.getHours(); |
|
if (hours.length<2) { hours=" "+hours; } |
|
statusbot=hours+':'+mins+':'+secs; |
|
if (!dislocked) { display(); } |
|
setTimeout('advanceclock();',1000); |
|
} |
|
|
function windowcheck() { |
function windowcheck() { |
if (clientwindow==null || clientwindow.closed) { |
if (clientwindow==null || clientwindow.closed) { |
clientwindow=window.open("http://"+clienthost+"/",'', |
clientwindow=window.open("http://"+clienthost+"/",'', |
Line 133 function logout () {
|
Line 149 function logout () {
|
function activate () { |
function activate () { |
opener.menuloaded=1; |
opener.menuloaded=1; |
setTimeout('active=1;',2000); |
setTimeout('active=1;',2000); |
|
advanceclock(); |
} |
} |
|
|
function deactivate () { |
function deactivate () { |
Line 142 function deactivate () {
|
Line 159 function deactivate () {
|
function display(utext,ltext) { |
function display(utext,ltext) { |
var i; var ch; |
var i; var ch; |
this.window.focus(); |
this.window.focus(); |
|
dislocked=1; |
if (utext == null) { utext = '';} |
if (utext == null) { utext = '';} |
if (ltext == null) { ltext = '';} |
if (ltext == null) { ltext = '';} |
if (typeof(utext)!="string") { utext=''; } |
if (typeof(utext)!="string") { utext=''; } |
Line 149 function display(utext,ltext) {
|
Line 167 function display(utext,ltext) {
|
if ((utext=='') && (ltext=='')) { |
if ((utext=='') && (ltext=='')) { |
utext=statustop; |
utext=statustop; |
ltext=statusbot; |
ltext=statusbot; |
|
dislocked=0; |
} |
} |
if (active) { |
if (active) { |
for (i=0;i<=7;i++) { |
for (i=0;i<=7;i++) { |
Line 156 function display(utext,ltext) {
|
Line 175 function display(utext,ltext) {
|
ch=utext.charAt(i); |
ch=utext.charAt(i); |
if (ch==' ') { ch='space'; } |
if (ch==' ') { ch='space'; } |
if (ch=='-') { ch='hyphen'; } |
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
this.document['i'+i].src=imgpath+ch+'.gif'; |
this.document['i'+i].src=imgpath+ch+'.gif'; |
} |
} |
Line 164 function display(utext,ltext) {
|
Line 185 function display(utext,ltext) {
|
ch=ltext.charAt(i); |
ch=ltext.charAt(i); |
if (ch==' ') { ch='space'; } |
if (ch==' ') { ch='space'; } |
if (ch=='-') { ch='hyphen'; } |
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
this.document['j'+i].src=imgpath+ch+'.gif'; |
this.document['j'+i].src=imgpath+ch+'.gif'; |
} |
} |
Line 172 function display(utext,ltext) {
|
Line 195 function display(utext,ltext) {
|
|
|
function defdis() { |
function defdis() { |
this.window.focus(); |
this.window.focus(); |
display(statustop,statusbot); |
display(); |
} |
} |
|
|
function switchbutton(row,col,imgsrc,texttop,textbot,action) { |
function switchbutton(row,col,imgsrc,texttop,textbot,action) { |