function zoomFoto(id_,num_,tab_,pt_,w,h,p,lang) {
  var l = Math.floor((screen.width-w)/2);
  var t = Math.floor((screen.height-h)/2);
  var path = p+"utilities/zoom_foto.php";
  searchWin = window.open(path +"?x="+ w +"&y="+ h +"&id="+ id_ +"&num="+ num_ +"&tab="+ tab_+"&pt="+ pt_+"&idlingua="+lang,"zoom_foto","scrollbars=no,resizable=yes,width=" + parseInt(parseInt(w)+0) + ",height=" + parseInt(parseInt(h)+0) + ",top=" + t + ",left=" + l+",status=no,location=no,toolbar=no");
}

function apriFinestra(url, myname, w, h, prop, res) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = "scrollbars="+prop+",height="+h+",width="+w+",top="+wint+",left="+winl+",resizable="+res+",status=yes";
    var win;
    win = window.open(url, myname, winprops);
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function displayWindow(theURL,winName,width,height,features) { //v3.1
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    newWindow.focus();
}
