function popup(website,larghezza,altezza) {
var windowprops='width=1,height=1,scrollbars=yes,status=no,resizable=no'
var heightspeed = 50; // vertical scrolling speed (higher = slower)
var widthspeed = 7;  // horizontal scrolling speed (higher = slower)
var leftdist = (screen.width - larghezza) / 2;    // distance to left edge of window
var topdist = (screen.height - altezza) / 2;    // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = larghezza;
var winheight = altezza;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}


function popup_noscrolling(website,larghezza,altezza) {
var windowprops='width=1,height=1,scrollbars=no,status=no,resizable=no'
var heightspeed = 50; // vertical scrolling speed (higher = slower)
var widthspeed = 7;  // horizontal scrolling speed (higher = slower)
var leftdist = (screen.width - larghezza) / 2;    // distance to left edge of window
var topdist = (screen.height - altezza) / 2;    // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = larghezza;
var winheight = altezza;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}

function popup_noscrolling_pos(website,larghezza,altezza,x,y) {
var windowprops='width=1,height=1,scrollbars=no,status=no,resizable=no'
var heightspeed = 50; // vertical scrolling speed (higher = slower)
var widthspeed = 7;  // horizontal scrolling speed (higher = slower)
var leftdist = (screen.width - larghezza) / 2;    // distance to left edge of window
var topdist = (screen.height - altezza) / 2;    // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = larghezza;
var winheight = altezza;
var sizer = window.open("","","left=" + x + ",top=" + y +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}

function popup_normal (website,l,a,x,y){
window.open(website,'mywindow','scrollbars=no,status=no,resizable=no,width='+l+',height='+a+',left='+x+',top='+y);
}

function popup_centrata (website,l,a,x,y){
window.open(website,'mywindow','scrollbars=no,status=no,resizable=no,width='+l+',height='+a+',left='+(screen.width - l) / 2+',top='+(screen.height - a) / 2);
}

function popup_centrata_scroll (website,l,a,x,y){
window.open(website,'mywindow','scrollbars=yes,status=no,resizable=no,width='+l+',height='+a+',left='+(screen.width - l) / 2+',top='+(screen.height - a) / 2);
}


function popup_centrata_300 (website){
window.open(website,'mywindow','scrollbars=no,status=no,resizable=no,width=400,height=300,left=200,top=200');
}

function popup_centrata_scroll (website,l,a,x,y){
window.open(website,'mywindow','scrollbars=yes,status=no,resizable=no,width='+l+',height='+a+',left='+(screen.width - l) / 2+',top='+(screen.height - a) / 2);
}