function view_album(url, width, height) {

	/* Initialize the variables.
		aw/ah   If JavaScript cannot determine the available height/width of the users screen, 
		        these are the default window sizes that will be used if an image is too big to view.
		
		sb      "no" = do not use scrollbars, "yes" = use scrollbars. This is automatically determined below, 
			    but if you prefer scrollbars, change this to "yes".

		tp/lp   tp - is the top position variable. It determines how far from the top the pop-up window will be 
		        positioned. lp - is the left position variable. It determines how far from the left the pop-up
				window will be positioned.

		eh/ew	eh - the extra buffer height around the image. The minimum value is 80.
				ew - the extra buffer width around the image. The minimum value is 50.
	*/
	var mywin = null; 
	var path = url;
	var opts = null;
	var aw = 600;
	var ah = 400;
	var w = 0;
	var h = 0;
	var ew = 50;
	var eh = 80;
	var wWidth = 0;
	var wHeight = 0;
	var sb = "no";
	var tp = 20;
	var lp = 20;
	
	// Get available screen width/height if possible.
	if (typeof(screen.availHeight) != "undefined") { ah = screen.availHeight-tp-(eh/2);}
	if (typeof(screen.availWidth) != "undefined") { aw = screen.availWidth-lp-(ew/2);}

	// Set some values
	w = parseInt(width);
	h = parseInt(height);

	// Set the minimum window size values. Change w = 200; and h = 170; as needed.
	if (w < 200) {w = 200;}
	if (h < 100) {h = 170;}

	// Set the window size buffer around the image. Change ew and eh above as needed.
	wWidth = w + ew;
	wHeight = h + eh;

	// Set the maximum window size values if the image is bigger than the desktop.
	if (wWidth > aw) { wWidth = aw; sb = "yes";}
	if (wHeight > ah) { wHeight = ah; sb = "yes"; }

	// The scrollbar option is configured above. 
	opts = 'scrollbars='+sb+', resizable=no, status=no, location=no, menubar=no, top='+tp+', left='+lp;
	opts += ',height=' + wHeight;
	opts += ',width=' + wWidth;

	mywin=window.open(path,"",opts);

}

