﻿function openNewWin(sUrl, sName, sAttribs) {
	if(sName == null) { sName = 'newwin'; }
	if(sAttribs == null) { sAttribs = ''; }
	window.open(sUrl, sName, sAttribs);
}
//------------------------------------------------------------------------------
function colorRows(table, iStartRow, iEndOffset) {
	var tbl;
	try {
		if(table.tagName == 'TABLE') {
			tbl = table;
		} else {
			tbl = document.getElementById(table);
		}
		if(iStartRow == null) { iStartRow = 1; }
		if(iEndOffset == null) { iEndOffset = 0; }
		
		for(var i=iStartRow; i < tbl.rows.length - iEndOffset; i++) {
			if(i%2 == 1) {
				tbl.rows[i].className = 'clsDataGridLineItemMain';
			} else {
				tbl.rows[i].className = 'clsDataGridLineItemAlt';
			}
		}
	} catch(e) { alert('Error in colorRows() in menu2.js'); }
}
//------------------------------------------------------------------------------