var smallwin;

// image window pop-up
function WOp (pic,wid,hgt) {
	var win_height;
	if (hgt) { win_height = hgt; } else { win_height = 400; }
	var win_width;
	if (wid) { win_width = wid; } else { win_width = 600; }
	if (document.all) { // extra padding for IE
		win_width = win_width+20;
		win_height = win_height+20;
	}
	smallwin = window.open(pic, "poolpic", "width=" + win_width + ",height=" + win_height + ",scrollbars=no,resizable=yes,screenX=1,screenY=1,top=1,left=1");
	smallwin.resizeTo(win_width,win_height); // IE windowsize fix
	smallwin.focus(); // bring to front
}


