
function __dopostback(action, param)
{
    document.getElementById('__action').value = action;
    document.getElementById('__param').value = param;    
    document.getElementById('form').submit();
}

/*
 *  DataTable
 */

var dt_row_restore;

function dt_row_rollon(a)
{
    dt_row_restore = new Array(a.cells.length);
    for (i=0; i < a.cells.length; i++)
    {
        dt_row_restore[i] = new Array(2);
        dt_row_restore[i][0] = a.cells(i).style.backgroundColor;
        dt_row_restore[i][1] = a.cells(i).style.color;
        
        a.cells(i).style.backgroundColor = 'black';
        a.cells(i).style.color = 'white';
    }
}

function dt_row_rolloff(a)
{
    for (i=0; i < a.cells.length; i++)
    {
        a.cells(i).style.backgroundColor = dt_row_restore[i][0];
        a.cells(i).style.color = dt_row_restore[i][1];
    }
}

var dt_hcell_restore;

function dt_hcell_rollon(a)
{
    dt_hcell_restore = new Array(2);
    dt_hcell_restore[0] = a.style.backgroundColor;
    dt_hcell_restore[1] = a.style.color;
    a.style.backgroundColor = 'gray';
    a.style.color = 'white';
}

function dt_hcell_rolloff(a)
{
    a.style.backgroundColor = dt_hcell_restore[0];
    a.style.color = dt_hcell_restore[1];
}
