
function changeStyle(nodeObj,bgc,cur,col,txd){
   nodeObj.style.backgroundColor = bgc;
   nodeObj.bgColor = bgc;
//   nodeObj.style.cursor = cur;
   nodeObj.style.color = col;
   nodeObj.style.textDecoration = txd;
}


function changeStyleById(id,bgc,cur,col,txd){
    if (document.getElementById) {
        var nodeObj = document.getElementById(id)
        nodeObj.style.backgroundColor = bgc;
//        nodeObj.style.cursor = cur;
        nodeObj.style.color = col;
        nodeObj.style.textDecoration = txd;
    } else {
        var nodeObj = eval('document.' + id );
        nodeObj.style.bgColor = bgc;
//        nodeObj.style.cursor = cur;
        nodeObj.style.color = col;
        nodeObj.style.textDecoration = txd;
    }
}
