﻿//Mostra il carrello a comparsa quando si clicca sulla barra Carrello
function showCarrello(csIdPnl) {
    //trovo per id
    var cPnl = document.getElementById(csIdPnl);
    //se non è trovato, ne forzo la ricerca in base all'id
    if (cPnl == null) {
        //FindElementById è definita in myUtility.js
        cPnl = FindElementById(csIdPnl, 'div');
    }
    
    if (cPnl.style.display == "block")
        cPnl.style.display = "none";
    else
        cPnl.style.display = "block";
}

//Nasconde lo small carrello
function closeSmallCarrello(csIdPnl) {
    //trovo per id
    var cPnl = document.getElementById(csIdPnl);
    //se non è trovato, ne forzo la ricerca in base all'id
    if (cPnl == null) {
        cPnl = FindElementById(csIdPnl, 'div');
    }

    cPnl.style.display = "none";
}

//Reload del contenuto dello small carrello
function ReloadSmallChart(csIframeName, csSrc) {
    var f = FindElementById(csIframeName, 'iframe');
    alert(f.getAttribute('id'));
    f.contentWindow.location = csSrc;
 }


