var marked_row = new Array;
var markTxt="mark"
var defStyle="row";
var hoverStyle="row-hover";
var markStyle="row-mark";

function isMark(sid){
   if(marked_row.length<=sid) return false;
   return (marked_row[sid]==markTxt);
}
function doMark(sid){
   marked_row[sid]=markTxt;
}
function doUnMark(sid){
   marked_row[sid]="";
}
function setPointer(theRow, theRowNum, theAction)
{
    if(theAction=='over' && !isMark(theRowNum)){
    	theRow.className=hoverStyle;
    }else if(theAction=='out' && !isMark(theRowNum)){
    	if(!isMark(theRowNum)) theRow.className=defStyle;
    }else if(theAction=='click'){
    	if(!isMark(theRowNum)){
    		theRow.className=markStyle;
    		doMark(theRowNum);
    	}else{
    		theRow.className=defStyle;
    		doUnMark(theRowNum);
    	}
    }
}