﻿function findPos(obj) {
    var curleft = curtop = 0;
    if (obj.offsetParent) {
        do {
            curleft += obj.offsetLeft;
            curtop += obj.offsetTop + 3;
        } while (obj = obj.offsetParent);

    }
    return [curleft, curtop];
}
//---------------------------------
var lastColorUsed;
function NAC_ChangeBackColor(row, highlight, RowHighlightColor) {
    if (highlight) {
        lastColorUsed = row.style.backgroundColor;
        row.style.backgroundColor = RowHighlightColor;
    }
    else {
        row.style.backgroundColor = lastColorUsed;
    }
}
//---------------------------------

