/* $Id: functions.js,v 1.7 2001/11/24 16:59:54 loic1 Exp $ */


/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function


msgWindow = document;
function showWindow (side)
{
	msgWindow = open(side,"displayWindow","alwaysRaised=yes, toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=550"); 
}

function closeWindow ()
{
	if (msgWindow != document)
	{
		msgWindow.close();
		msgWindow = document;
	}
}