		function openImageInNewWindow(title,name,url,width, height, additionalParams) {
			params = '';
	
			if (width > 0) {
				if (width < screen.availWidth) {
					// if we're specifying the width and height, then centre it on the screen
					dialogLeft = Math.ceil((screen.width / 2) - (width / 2));
				} else {
					dialogLeft = 0;
					width = screen.availWidth;
				}
			} else {
				// if no width and height are specified, then fill the screen
				dialogLeft = 0;
				width = screen.availWidth;
			}
	
			if (height > 0) {
				if (height < screen.availHeight) {
					// if we're specifying the width and height, then centre it on the screen
					dialogTop = Math.ceil((screen.height / 2) - (height / 2));
				} else {
					dialogTop = 0;
					height = screen.availHeight;
				}
			} else {
				// if no width and height are specified, then fill the screen (allowing space for taskbar)
				dialogTop = 0;
				height = screen.availHeight;
			}

			params = 'width=' + width + ',height=' + height + ',dependent,scrollbars=no,left=' + dialogLeft + ',top=' + dialogTop;
	
			if (additionalParams != '') {
				params = params + ',' + additionalParams
			}
	
			newWindow = window.open (url, '', params);
			newWindow.document.open('text/html');
			newWindow.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
			newWindow.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">');
			newWindow.document.writeln('<head><title>' + title + '</title></head>');
			newWindow.document.writeln('<body style="margin:0;padding:0;">');
			newWindow.document.writeln('<img src="' + url + '" style="margin-bottom:-4px;"/>');
			newWindow.document.writeln('</body></html>');
			newWindow.document.close();
			newWindow.focus();
		}
