function SwapImage(ImageName,ImageFile){
    Image1=new Image(75,50);
    Image1.src = ImageFile;
    document[ImageName].src = Image1.src; return true;
}

function ApriWindow(url, width, height, top, left, scroll) {
// impostare scroll a 1 oppure 0

    if (document.all) {
        var x = window.screenLeft;
        var y = window.screenTop;
        var w = window.document.body.offsetWidth;
        var h = window.document.body.offsetHeight;
    }
    else {
        var x = window.screenX;
        var y = window.screenY;
        var w = window.outerWidth;
        var h = window.outerHeight;
    }
    var cntx = x + Math.round((w - width) / 2);
    var cnty = y + Math.round((h - height) / 2);
    if (top == "0") {
        window.open (url, null, 'left=' + cntx + ',top=' + cnty + ',width=' + width + ',height=' + height + ',scrollbars=' + scroll);
    }
    else {
        window.open (url, null, 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',scrollbars=' + scroll);
    }
}

function ApriCatalogo(URL) {
	newWindow = window.open(URL , 'Catalogo', 'resizable=yes,scrollbars=yes');
}
