function showPicOld (pic_path, pic_capt, pic_width, pic_height, style_file)
{
	var xs = (screen.availWidth  - 200) / pic_width;
	var ys = (screen.availHeight - 350) / pic_height;

	xs = (xs > ys ? (ys > 1 ? 1 : ys) : (xs > 1 ? 1 : xs));

	pic_width  = Math.round (pic_width  * xs);
	pic_height = Math.round (pic_height * xs);

	var pw = pic_width + 150;
	var ph = pic_height + 300;

	var xc = Math.floor ((screen.availWidth  - pw) / 3);
	var yc = Math.floor ((screen.availHeight - ph) / 3);

	var p_opts = "scrollbars=yes,status=no,top=" + yc + ",left=" + xc +
	             ",width=" + pw + ",height=" + ph;
	var wH = window.open ('', '_blank', p_opts);
	var dH = wH.document;

	dH.write ('<html>\n');
	dH.write ('<head>\n');
	dH.write ('<title> The Card House Picture Viewer </title>\n');
	dH.write ('<link type="text/css" rel="stylesheet" href="');
	dH.write (style_file);
	dH.write ('" />\n');
	dH.write ('</head>\n');
	dH.write ('<body class="showPicMain">\n');
	dH.write ('<table class="showPicTable" align="center" \n');
	dH.write ('	   cellspacing="0" cellpadding="10">\n');
	dH.write ('<tr><td>\n');
	dH.write ('<table align="center" border="0" cellspacing="0" cellpadding="10" bgcolor="white">\n');

	dH.write ('<tr><td align="center">\n');
	dH.write ('	<img src="/ims/ch_base_small.gif">\n');
	dH.write ('</td></tr>\n');
	dH.write ('<tr><td align="center">\n');
	dH.write ('<h3>');
	dH.write (pic_capt);
	dH.write ('</h3>\n');
	dH.write ('</td></tr>\n');
	dH.write ('<tr><td align="center">\n');
	dH.write ('<img src="');
	dH.write (pic_path);
	dH.write ('" height="' + pic_height + '">\n');
	dH.write ('</td></tr>\n');
	dH.write ('<tr><td align="center">\n');
	dH.write ('<a href="javascript:window.close()">Close window</a>\n');
	dH.write ('</td></tr>\n');
	dH.write ('</table>\n');
	dH.write ('</td></tr>\n');
	dH.write ('</table>\n');
	dH.write ('</body>\n</html>\n');

	dH.close();
	wH.focus();
}

function showPic(pic_path, pic_capt, pic_width, pic_height, style_file)
{
	var xs = (screen.availWidth  - 200) / pic_width;
	var ys = (screen.availHeight - 350) / pic_height;

	xs = (xs > ys ? (ys > 1 ? 1 : ys) : (xs > 1 ? 1 : xs));

	pic_width  = Math.round (pic_width  * xs);
	pic_height = Math.round (pic_height * xs);

	var pw = pic_width + 15;
	var ph = pic_height + 20;

	var xc = Math.floor ((screen.availWidth  - pw) / 3);
	var yc = Math.floor ((screen.availHeight - ph) / 3);

	var p_opts = "scrollbars=yes,status=no,top=" + yc + ",left=" + xc +
	             ",width=" + pw + ",height=" + ph;
	var wH = window.open ('', '_blank', p_opts);
	var dH = wH.document;

	dH.write ('<html>\n');
	dH.write ('<head>\n');
	dH.write ('<title> The Card House Picture Viewer </title>\n');
	dH.write ('</head>\n');
	dH.write ('<body class="showPicMain">\n');
	dH.write ('<img src="');
	dH.write (pic_path);
	dH.write ('" height="' + pic_height + '">\n');
	dH.write ('</body>\n</html>\n');

	dH.close();
	wH.focus();
}

//	eof

