﻿


//function switchMenu(obj, lab) 
//{
//    var el = document.getElementById(obj);
//    
//    if ( el.style.display != 'none' )
//     {
//         el.style.display = 'none';
//         document.getElementById('<%= lbl_mas_menos.ClientID %>').innerHTML = '+';
//     }
//    else 
//     {
//        el.style.display = '';
//        document.getElementById('<%= lbl_mas_menos.ClientID %>').innerHTML = '-';
//     }
//}

function cambiar_img(img_name, img_src)
{
    document[img_name].src = img_src;
}
 
function showWait()
{
    document.getElementById('loadingFileDiv').style.display =""; 
    setTimeout('document.images["myAnimatedImage"].src = "../res/ajax-loader.gif"', 200); 
    document.aspnetForm.ddlServicio.disabled = true;
    document.getElementById('ddlServicio').disabled = true;
}

function PosicionaFiltros(gridName)
{
    //get the grid
    var grid = igtbl_getGridById(gridName);
    //get the filter row
    var filterRow = grid.Rows.getFilterRow();
    //loop through the filter row cells
    for(var i = 0; i <igtbl_getLength(grid.Bands[0].Columns);i++)
    {
       //set the alignment to the left.
       filterRow.getCell(i).getElement().style.textAlign = "left";
    }
} 

function revealModal(divID, divModal)
{
    document.getElementById(divID).style.display = "block";
    document.getElementById(divID).style.top = document.body.scrollTop;
}

function hideModal(divID)
{
    document.getElementById(divID).style.display = "none";
    return null;
}



