function chiudi()
{
window.close();
}

var news = null;
function aprinewsletter(URL)
{
W=400;
H=350;
X = (screen.width - W) / 2;
Y = (screen.height - H) / 2;
P = "width=" + W + ",height=" + H + ",";
P+= "top=" + Y + ",left=" + X + ",";
P+= "scrollbars=no,status=no,resizable=no";
if 	(!news || news.closed) 
		{news = window.open(URL, "", P); news.window.focus();}
else
		{news.window.focus();}
}

var contatti = null;
function apricontatti(URL)
{
W=400;
H=350;
X = (screen.width - W) / 2;
Y = (screen.height - H) / 2;
P = "width=" + W + ",height=" + H + ",";
P+= "top=" + Y + ",left=" + X + ",";
P+= "scrollbars=no,status=no,resizable=no";
if 	(!contatti || contatti.closed) 
		{contatti = window.open(URL, "", P); contatti.window.focus();}
else
		{contatti.window.focus();}
}

var controllo = null;

function apriindex2(URL, W, H)
{

X = (screen.width - W) / 2;
Y = (screen.height - H) / 2;
P = "width=" + W + ",height=" + H + ",";
P+= "top=" + Y + ",left=" + X + ",";
P+= "scrollbars=no,status=no,resizable=no";
if 	(!controllo || controllo.closed) 
		{controllo = window.open(URL, "", P); controllo.window.focus();}
else
		{controllo.window.focus();}
}

var controllo1 = null;

function apriarea(URL, W, H)
{

X = (screen.width - W) / 2;
Y = (screen.height - H) / 2;
P = "width=" + W + ",height=" + H + ",";
P+= "top=" + Y + ",left=" + X + ",";
P+= "scrollbars=yes,status=no,resizable=no";
if 	(!controllo1 || controllo1.closed) 
		{controllo1 = window.open(URL, "", P); controllo1.window.focus();}
else
		{controllo1.window.focus();}
}
