
if (!document.getElementById) {if (document.all) {document.getElementById=function() {if (typeof document.all[arguments[0]]!="undefined") {return document.all[arguments[0]]
} else {return null
}
}
} else if (document.layers) {document.getElementById=function() {if (typeof document[arguments[0]]!="undefined") {return document[arguments[0]]
} else {return null
}
}
}
}
function disableButtons(whatForm, whatState) {var elements = whatForm.getElementsByTagName('input');
for (var i = 0; i < elements.length; i++) {if (elements[i].type=='button' || elements[i].type=='submit')
elements[i].disabled = whatState;
}
var table = whatForm.getElementById('articlelist');
if (table) {var images = table.getElementsByTagName('img');
for (var i = 0; i < images.length; i++) {if (whatState) {idx = images[i].src.lastIndexOf('.gif');
if (idx > 0) {sub = images[i].src.substr(0,idx);
img = sub + '_disabled.gif';
images[i].src = img;
}
} else {idx = images[i].src.lastIndexOf('_disabled.gif');
if (idx > 0) {sub = images[i].src.substr(0,idx);
img = sub + '.gif';
images[i].src = img;
}
}
}
}
}
function showPopUp(URL, name, width, height) {var w = 800, h = 600;
if (document.all) {w = document.body.clientWidth;
h = document.body.clientHeight;
}
else if (document.layers) {w = window.innerWidth;
h = window.innerHeight;
}
var leftPos = (w-width)/2, topPos = (h-height)/2;
msgWindow=window.open(URL,name,'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width='+width+',height='+height+',top='+topPos+',left='+leftPos);
if (msgWindow.opener == null) msgWindow.opener = self;
if (window.focus) msgWindow.focus();
}
