
var oldRow;
var oldScrollerIndex;
var oldSelectedRowIndex;

function selectRow(row,pageIndex){
	if(pageIndex==oldScrollerIndex){
		//corrijo la seleccion anterior
		table = row.parentNode;
		if (oldSelectedRowIndex < table.rows.length){
			table.rows[oldSelectedRowIndex].className='row_inactiva';
		}
	}
	//table = row.parentNode;

	oldSelectedRowIndex = row.sectionRowIndex;
	oldScrollerIndex=pageIndex;
	if(oldRow!=undefined){
		oldRow.className='row_inactiva';
	}
	row.className='row_selected';
	oldRow=row;
}

function onMouse(row_actual,mouse_in){
	if(row_actual.className!='row_selected'){
		row_actual.className = mouse_in ? 'row_activa':'row_inactiva';
	}
}

function adjustSelection(currentIndex,clientId){
	if(currentIndex==oldScrollerIndex){
		document.getElementById(clientId).rows[oldSelectedRowIndex+1].className='row_selected';
	}
}

