 function apri(id,width,height) {
   var w = width;
   var h = height;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("img.php?id="+id,"loren","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l +" scrollbars=no,menubar=no,toolbar=no,location=no,status=no,resizable=no");
 }