function zoomX(id_file,w,h,from) {
  var l = Math.floor((screen.width-w)/2);
  var t = Math.floor((screen.height-h)/2);
  if (from=="admin")
    var x = "../zoom.php";
  else
    var x = "zoom.php";

  searchWin = window.open(x +"?x="+ w +"&y="+ h +"&ID="+ id_file,"zoom","scrollbars=yes,resizable=yes,width=" + parseInt(parseInt(w)+20) + ",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(); }
}

