<!--

function open_popup(location_uri, width, height) 
{
	var w = window.open(location_uri, "popup_window_"+width+height, "width="+width+",height="+height+",status=no,resizable=no");
	w.focus();
    if (navigator.appVersion.match("IE") ) event.returnValue = false;
	return false;
}


function open_popup_extended(location_uri, width, height, isStatus, isResizable, isScrollbars) 
{
	var w = window.open(location_uri, "popup_window_"+width+height, "width="+width+",height="+height+",status="+isStatus+",resizable="+isResizable+", scrollbars="+isScrollbars+"");
	w.focus();
    if (navigator.appVersion.match("IE") ) event.returnValue = false;
	return false;
}

/*
 *  Table row marking
 */
 
var c_row = null;

function setRowStyle(theRow, newStyle) 
{
	var c = null;
	var theCells = theRow.getElementsByTagName('td');
	var rowCellsCnt  = theCells.length;
    for (c = 0; c < rowCellsCnt; c++) {
    	if ((rowCellsCnt - c) > 1)
			theCells[c].className = newStyle;
		else
    		theCells[c].className = newStyle; // + "_last";
	}
}

function setPointer(theRow, theAction, baseStyleName)
{

	if (theAction == 'over' && c_row != theRow) {
		setRowStyle(theRow, baseStyleName + 'Over');
	}

	else if (theAction == 'out' && c_row != theRow) {
		setRowStyle(theRow, baseStyleName);
	}

	else if (theAction == 'click') {
		if (c_row != null) {
			setRowStyle(c_row, baseStyleName);
			c_row.getElementsByTagName('input')[0].checked = false;
		}
	    setRowStyle(theRow, baseStyleName + 'Checked');
        theRow.getElementsByTagName('input')[0].checked = true;
        c_row = theRow;
	}

    return true;

}

// -->

// vim: encoding=utf-8 fileencodings=utf-8 nobackup

