var CMHTMLBLOCKcurrPag = new Array();
function RefreshBlocco(idblocco,npag,tout) {
    if(CMHTMLBLOCKcurrPag[idblocco] == null)
        CMHTMLBLOCKcurrPag[idblocco] = 1;
    for(var i=0; i<npag; i++) {
        var oPag = document.getElementById(idblocco + i);
        oPag.style.display = "none";
    }
    var oPagShow = document.getElementById(idblocco + CMHTMLBLOCKcurrPag[idblocco]);
    oPagShow.style.display = "block";
    if(CMHTMLBLOCKcurrPag[idblocco] >= npag - 1)
        CMHTMLBLOCKcurrPag[idblocco] = 0;
    else
        CMHTMLBLOCKcurrPag[idblocco]++;
    setTimeout("RefreshBlocco('" + idblocco + "'," + npag + "," + tout + ");",tout);
}
