// Get out of frames
if (window != top) top.location.href = location.href;

// Maximize the window
/*
var w = window.screen.availWidth; 
var h = window.screen.availHeight
if ((window.screenTop!=0) && (window.screenLeft!=0)) {
	window.moveTo(0,0)
	window.resizeTo(w,h)
}*/

// The following highlighting function is used in the Articles search page.
function highlight(field, msg) {
	field.focus();
	field.value = msg;
	field.select();
}

// This function blocks any right mouse button clicks
function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right;

// This function sets the style class of an entire row.  It is most often used to highlight and dehighlight a particular row.
function setClass(theRow, theClass) {
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    } else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    } else {
        return false;
    }
    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].className = theClass;
    }
    return true;
}

