function ShowImage(file, width, height) {
  if (screen.availWidth < (width+50)) {
    width = screen.availWidth-50;
  }
  if (screen.availHeight < (height+60)) {
    height = screen.availHeight-60;
  }
  height = height+30;
  width = width+40;
  w='width=' + width + ',height=' + height;
	win = window.open('', 'PhotoWindow' , w + ',screenX='+((screen.availWidth/2)-(width/2))+',screenY=10,left='+((screen.availWidth/2)-(width/2))+',top=10,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes');
	win.location.href='photo_show.php?file=' + file;
}