﻿function popUpWin(theURL,theName,winWidth, winHeight, WinProperties) 
{
	var screenWidth = (window.screen.width - winWidth) / 2;
	var screenHeight = (window.screen.height - winHeight) / 2;
	theURL = theURL.replace( /!/g, "&");
	window.open(theURL,theName,"width=" + winWidth + ",height=" + winHeight + ",left=" + screenWidth + ",top=" + screenHeight + "," + WinProperties);
}

function ChiediConferma(msg)
{
       boolEsito = true;
       conferma = window.confirm(msg)
       if (!conferma)
            boolEsito = false;
}

function ManageDxColumn()
{
   MainDxW = document.getElementById("MainDx").style.width;
   if (screen.width < 1280)
   {
        document.getElementById("MainDx").style.width = screen.width - 32;
        document.getElementById("Contenitore").style.width = screen.width - 32; 
    } 
   else
    {
       document.getElementById("MainDx").style.width = MainDxW;
       document.getElementById("Contenitore").style.width = MainDxW; 
     } 
}






