function showphotonew (idn,num,foot,lang) {
  var width = 150;
  var height = 150;
  var x=(640 - width)/2
  var y=(480-height)/2

  if(screen) {
          y=(screen.availHeight - height)/2
          x=(screen.availWidth - width)/2
  }

  if(screen.availWidht > 1800)
          x=((screen.availWidth/2) - width)/2

  window.width=width
  window.height=height
  window.x=x
  window.y=y

  estilo="toolbar=0, status=0, location=0, directories=0, menubar=0, scrollbars=0, resize=0,resizable=0";
  params ='id='+idn+'&n='+num+'&lang='+lang;
  params += foot ? '&foot='+foot : '' ;

  vn = window.open('modules/photonew.php?'+params, 'newwinphotonew', estilo + ",width=" + width + "px,height=" + height +
"px,top=" + y + "px,left=" + x + "px");
  vn.focus();
}
