
function ChangeTable(tblTitleID,tblContID, Index, c1, c2) {
    var tbls = document.getElementById(tblTitleID).getElementsByTagName("table");    
    var i = 0;
    var td;
    for (i = 0; i < tbls.length; i++) {
        if (i + 1 == Index) {
            tbls[i].rows[0].cells[0].className = "columns_title_c1";
            tbls[i].rows[0].cells[1].className = "columns_title_c2";
            tbls[i].rows[0].cells[1].style.color = c1;
            tbls[i].rows[0].cells[2].className = "columns_title_c3";
        }
        else {
            tbls[i].rows[0].cells[0].className = "columns_title_c4";
            tbls[i].rows[0].cells[1].className = "columns_title_c5";
            tbls[i].rows[0].cells[1].style.color = c2;
            tbls[i].rows[0].cells[2].className = "columns_title_c6";
        }        
    }
    ChangeTableCont(tblContID, Index);
}
function ChangeTableCont(tableID, Index) {
    var tbl = document.getElementById(tableID);
    var i = 0;
    if(tbl.rows.length != 1) return;    
    for (i = 0; i < tbl.rows[0].cells.length; i++) {
        if ((i + 1) == Index)
            tbl.rows[0].cells[i].style.display = "inline";
        else
            tbl.rows[0].cells[i].style.display = "none";
    }    
}
