
	function openWindow(fileName, name, width, height) {
	 
	  var screen_width = screen.width;
	  var screen_height = screen.height;
	  
	  var windowX = Math.round((screen_width / 2) - (width / 2));
	  var windowY = Math.round((screen_height / 3) - (height/ 2));

	  var options = 'toolbar=no,width=' + width + ',height='+height + ',status=no,left='+windowX+', top='+windowY+', menubar=no,location=no,scrollbars=yes,resizable=yes';	  
	  
    window.open(fileName, "lrg_photo", options); 	   
	  
	}
