
// quick JS object in case the browser doesn't do console!
if (!console) {
	var console = {
		log: function(msg) {}
	}
};

var zoomWindow = null;
function zoom (uri, w, h) {
	if (arguments.length<3) {
		h=240;
	}
	if (arguments.length<2) {
		w=320;
	}
	if (zoomWindow) {
		zoomWindow.close();
	}
	
	zoomWindow = window.open(uri, 'zoom', 'width='+w+',height='+h+',scrollbars=yes,toolbars=no,locationbar=no,resizable=yes');
	zoomWindow.focus();
}
