oldClassName = '';

function tbRowRollOver(rowObj, offset){
    tableObj        = rowObj.parentNode;
    id              = rowObj.rowIndex;
    oldClassName    = tableObj.rows[id].className;

    tableObj.rows[id - offset].className =
        tableObj.rows[id - offset + 1].className =
        tableObj.rows[id - offset + 2].className = 'tbRowOver';
}

function tbRowRollOut(rowObj, offset){
    tableObj = rowObj.parentNode;
    id      = rowObj.rowIndex;
    tableObj.rows[id - offset].className =
        tableObj.rows[id - offset + 1].className =
        tableObj.rows[id - offset + 2].className = oldClassName;
}

function tbRowRollOver2(rowObj, offset){
    tableObj        = rowObj.parentNode;
    id              = rowObj.rowIndex;
    oldClassName    = tableObj.rows[id].className;

    tableObj.rows[id].className = 'tbRowOver';
}

function tbRowRollOut2(rowObj, offset){
    tableObj = rowObj.parentNode;
    id      = rowObj.rowIndex;
    tableObj.rows[id].className = oldClassName;
}


function openWin(winTitle, winUrl, imgWidth, imgHeight, winBgColor) {
	
	winWidth 	= imgWidth;
	winHeight	= imgHeight;

	winLeft = parseInt((screen.width - winWidth) / 2);
	winTop = parseInt((screen.height - winHeight) / 2);
	if(winBgColor) {
		imgWidth = winWidth;
		imgHeight = winHeight;
		winWidth = winWidth + 40;
		winHeight = winHeight + 70;
	}
	winProps = 'width=' + winWidth + ',height=' + winHeight + ',top=' + winTop + ',left=' + winLeft;
	
	if(winBgColor){
		myWin = window.open("", winTitle, winProps);
		myWin.document.open();
		myWin.document.write('<body bgcolor="' + winBgColor + '" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center"><a href="javascript:window.close()"><img src="' + winUrl +'" width="' + imgWidth + '" height="' + imgHeight + '" border="0" alt="Click to close window" title="Click to close window"></a></td></tr></table></body>');
		myWin.document.close();
	}
	else myWin = window.open(winUrl,winTitle,winProps);
	
	myWin.resizeTo(winWidth, winHeight);
	myWin.moveTo(winLeft, winTop);
	myWin.focus();
}
