var picWindow;

function zoom(url, width, height) {
	if (picWindow)
		picWindow.close();
	scrollbars = 'no';
	if (width > screen.availWidth - 100) {
		scrollbars = 'yes';
		width = screen.availWidth - 100;
	}
	if (height > screen.availHeight - 100) {
		scrollbars = 'yes';
		height = screen.availHeight - 100;
	}
	picWindow = window.open(url, 'zoom', 'width=' + width + ',height=' + height + ',scrollbars=' + scrollbars + ',resizable=yes,toolbar=no,location=no,menubar=no,status=no');
}
