var selRow=-1;
var currRow=-1;
function trMouse(overOut,startCol)
{
	srcElem = window.event.srcElement;
	//crawl up to find the row
	while (srcElem.tagName != "TR" && srcElem.tagName != "TABLE")
		srcElem = srcElem.parentElement;

	if(srcElem.tagName != "TR") return;
//	selRow=srcElem;
	if (srcElem.rowIndex > 0)
		alterRow(srcElem,overOut,startCol);
	else
		alterRow(-1,overOut);
}
function alterRow(newRow,overOut,startCol){
	try{
		if(hlColor != null ){
			if(newRow != -1 && newRow!=selRow){
				if(overOut=="Over"){
					llBgColor=newRow.runtimeStyle.backgroundColor;
					llColor=newRow.runtimeStyle.color;
					setRow(newRow,startCol,hlBgColor,hlColor,null,"hand");
				}else{
					if (newRow != -1 && newRow!=selRow)setRow(newRow,startCol,llBgColor,llColor,null,"default");
				}
			}
		}
		currRow = newRow;
	} catch(error) {
	//catched
	}
} 
function setRow(row,startCol,bgColor,color,weight,cursor){
	try {
		for(var i=startCol;i<row.children.length;i++){
			if(bgColor!=null)row.children[i].runtimeStyle.backgroundColor = bgColor;
			if(color!=null)row.children[i].runtimeStyle.color = color;
			if(weight!=null)row.children[i].runtimeStyle.fontWeight =weight;
			if(cursor!=null)row.children[i].runtimeStyle.cursor =cursor;
		}
	} catch(error) {
	//catched
	}
}
function trClick(clickScript,noClick){
	srcElem = window.event.srcElement;
	var doClick=true;
	if(noClick!=null&&noClick!=''){
		var noClicks=noClick.split(",");
		try{
			for(var i=0;i<noClicks.length;i++)if(srcElem.name.search(noClicks[i])>-1){
				doClick=false;
				break;
			}
		} catch(error) {
		//catched
		}
	}
	if(doClick)eval(clickScript);
}

