TS_OpenWindow = function(theURL,pic_width,pic_height) {
	features = "resizable=yes,";
	if (pic_width > (screen.width - 160)) {
		pic_width = screen.width - 160;
		features = "scrollbars=yes,";
	}
	if (pic_height > (screen.height - 160)) {
		pic_height = screen.height - 160;
		features = "scrollbars=yes,";
	}
	x = (screen.width - pic_width) / 2;
	y = (screen.height - pic_height) / 2;
	features += "width=" + pic_width + ",height=" + pic_height;
	features += ",left=" + x + ",top=" + y;
	window.open(theURL,"",features);
}
