var picWin;
var n = 0;

function openPicWindow(url,x,y) {
  if(n > 0) {
    if(picWin.closed == false)
      picWin.close();
  };
  
  x = x + 20;
	y = y + 25;
	
  options = 'width=' + x + ', height=' + y + ', hotkeys=no';
  
  picWin = window.open(url, target="_blank", options);
	n = n + 1;

};
