﻿// JScript File

function ExibeQuadro(subsistema)
{
    if(subsistema == "Corporativo")
    {
        pnlCorporativo.style.visibility = 'visible';
        pnlCorporativo.style.zIndex = '999999';
        pnlCorporativo.style.position = 'absolute';
        pnlCorporativo.style.top = '100px';
        pnlCorporativo.style.left = '63px';
    }
    else if(subsistema == "Produtos")
    {
        pnlProdutos.style.visibility = 'visible';
        pnlProdutos.style.zIndex = '999999';
        pnlProdutos.style.position = 'absolute';
        pnlProdutos.style.top = '100px';
        pnlProdutos.style.left = '63px';
    }
    else if(subsistema == "Contratos")
    {
        pnlContratos.style.visibility = 'visible';
        pnlContratos.style.zIndex = '999999';
        pnlContratos.style.position = 'absolute';
        pnlContratos.style.top = '100px';
        pnlContratos.style.left = '63px';
    }
    else if(subsistema == "Sinistros")
    {
        pnlSinistros.style.visibility = 'visible';
        pnlSinistros.style.zIndex = '999999';
        pnlSinistros.style.position = 'absolute';
        pnlSinistros.style.top = '100px';
        pnlSinistros.style.left = '63px';
    }
    else if(subsistema == "Resseguro")
    {
        pnlResseguro.style.visibility = 'visible';
        pnlResseguro.style.zIndex = '999999';
        pnlResseguro.style.position = 'absolute';
        pnlResseguro.style.top = '100px';
        pnlResseguro.style.left = '63px';
    }
    else if(subsistema == "Cosseguro")
    {
        pnlCosseguro.style.visibility = 'visible';
        pnlCosseguro.style.zIndex = '999999';
        pnlCosseguro.style.position = 'absolute';
        pnlCosseguro.style.top = '100px';
        pnlCosseguro.style.left = '63px';
    }
    else if(subsistema == "Financeiro")
    {
        pnlFinanceiro.style.visibility = 'visible';
        pnlFinanceiro.style.zIndex = '999999';
        pnlFinanceiro.style.position = 'absolute';
        pnlFinanceiro.style.top = '100px';
        pnlFinanceiro.style.left = '63px';
    }
    else if(subsistema == "Contabil")
    {
        pnlContabil.style.visibility = 'visible';
        pnlContabil.style.zIndex = '999999';
        pnlContabil.style.position = 'absolute';
        pnlContabil.style.top = '100px';
        pnlContabil.style.left = '63px';
    }
    else if(subsistema == "Batch")
    {
        pnlBatch.style.visibility = 'visible';
        pnlBatch.style.zIndex = '999999';
        pnlBatch.style.position = 'absolute';
        pnlBatch.style.top = '100px';
        pnlBatch.style.left = '63px';
    }
    else if(subsistema == "Interfaces")
    {
        pnlInterfaces.style.visibility = 'visible';
        pnlInterfaces.style.zIndex = '999999';
        pnlInterfaces.style.position = 'absolute';
        pnlInterfaces.style.top = '100px';
        pnlInterfaces.style.left = '63px';
    }
    else if(subsistema == "eSies")
    {
        pnleSies.style.visibility = 'visible';
        pnleSies.style.zIndex = '999999';
        pnleSies.style.position = 'absolute';
        pnleSies.style.top = '100px';
        pnleSies.style.left = '63px';
    }
    else if(subsistema == "InfGerenciais")
    {
        pnlInfGerenciais.style.visibility = 'visible';
        pnlInfGerenciais.style.zIndex = '999999';
        pnlInfGerenciais.style.position = 'absolute';
        pnlInfGerenciais.style.top = '100px';
        pnlInfGerenciais.style.left = '63px';
    }
    
    
}

function FechaQuadro(subsistema)
{
    if(subsistema == "Corporativo")
    {
        pnlCorporativo.style.visibility = 'hidden';
    }
    else if(subsistema == "Produtos")
    {
        pnlProdutos.style.visibility = 'hidden';
    }
    else if(subsistema == "Contratos")
    {
        pnlContratos.style.visibility = 'hidden';
    }
    else if(subsistema == "Sinistros")
    {
        pnlSinistros.style.visibility = 'hidden';
    }
    else if(subsistema == "Resseguro")
    {
        pnlResseguro.style.visibility = 'hidden';
    }
    else if(subsistema == "Cosseguro")
    {
        pnlCosseguro.style.visibility = 'hidden';
    }
     else if(subsistema == "Financeiro")
    {
        pnlFinanceiro.style.visibility = 'hidden';
    }
    else if(subsistema == "Contabil")
    {
        pnlContabil.style.visibility = 'hidden';
    }
    else if(subsistema == "Batch")
    {
        pnlBatch.style.visibility = 'hidden';
    }
    else if(subsistema == "Interfaces")
    {
        pnlInterfaces.style.visibility = 'hidden';
    }
    else if(subsistema == "eSies")
    {
        pnleSies.style.visibility = 'hidden';
    }
    else if(subsistema == "InfGerenciais")
    {
        pnlInfGerenciais.style.visibility = 'hidden';
    }
    
    
}