﻿function EseguiActiveX(sComando) {
    Esegui.ImpostaPath(sComando)
}


function Riduci(Controllo, Altezza) {
    if (Controllo.style.height == 0 || Controllo.style.height == '0' || Controllo.style.height == '0px') {
        Controllo.style.height = Altezza;
        //Controllo1.frameElement.style.height=Altezza;
    }
    else {
        Controllo.style.height = 0;
        //Controllo1.frameElement.style.height=0;
    }
}

if (document.all) {
    top.window.moveTo(0, 0);
    top.window.resizeTo(screen.availWidth, screen.availHeight);
}
else if (document.layers || document.getElementById) {
    if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) {
        top.window.outerHeight = screen.availHeight;
        top.window.outerWidth = screen.availWidth;
    }
}


function infoscroll(seed, looped) {
    var msg = testo;
    var putout = " ";
    var c = 1;
    if (seed > 100) {
        seed--;
        var cmd = "infoscroll(" + seed + "," + looped + ")";
        timerTwo = window.setTimeout(cmd, 100);
    }
    else if (seed <= 100 && seed > 0) {
        for (c = 0; c < seed; c++) {
            putout += " ";
        }
        putout += msg.substring(0, 100 - seed);
        seed--;
        var cmd = "infoscroll(" + seed + "," + looped + ")";
        window.status = putout;
        timerTwo = window.setTimeout(cmd, 100);
    }
    else if (seed <= 0) {
        if (-seed < msg.length) {
            putout += msg.substring(-seed, msg.length);
            seed--;
            var cmd = "infoscroll(" + seed + "," + looped + ")";
            window.status = putout;
            timerTwo = window.setTimeout(cmd, 100);
        }
        else {
            window.status = " ";
            looped += 1;
            var cmd = "infoscroll(100," + looped + ")";
            timerTwo = window.setTimeout(cmd, 75);
        }
    }
}

