function wopen(url, name, w, h)
{
//USED FOR BOTH PHOTOS AND PRINT PAGES: for photos just put photo size(in px for window size)and show photo path in html 

// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
 
w += 49;   //Original value was 32: but without status bar and others
h += 153;  //Original value was 96: but without status bar and others
 var win = window.open(url,
  name, 
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=yes, ' +
  'status=yes, toolbar=yes, scrollbars=yes, resizable=yes');
 win.resizeTo(w, h);
 win.focus();
}
