function	showpic(_thepic, _wid, _hgt, _title ,_comments, _memname)	{

	var	bgc	=	"FFFFFF";
	var	txc	=	'000000';
	
	var	srcname =	_thepic;
	var	aTit	=	_thepic;

	var	imgwid	=	Number( _wid ) + 40;
	var	imghgt	= 	Number( _hgt ) + 180;

	if( _comments )	{
		imgwid += 140;
		imghgt += 100;
	}

	if (checkIt('msie'))	{
	 	var	winname		=	"_blank";
	}
	else	{
		var	winname		=	"Hastings Arts Forum : Member Image";
 	}
 	
// Top/Left are IE only ...

//	var newwin = window.open("/resources/html/dummy.html" , winname, "scrollbars=yes,toolbar=yes,menubar=yes,status=yes,resizable=yes,width="+ imgwid + ",height=" + imghgt, false);

	var newwin = window.open("" , winname, "scrollbars=yes,toolbar=yes,menubar=yes,status=yes,resizable=yes,width="+ imgwid + ",height=" + imghgt, false);

	newwin.resizeTo(imgwid, imghgt)
//	newwin.name = winname;
	
	var	nd = newwin.document;
	nd.open();

	nd.writeln("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
	nd.writeln("<html xmlns=\"http://www.w3.org/1999/xhtml\">");

	nd.writeln("<head>");			

	nd.writeln("<style type='text/css'> <!--");
	nd.writeln("	body  { font-family: \"Trebuchet MS\" Verdana, Arial, Sans-Serif; font-size: 12px; }");
	nd.writeln("	h1 { font-weight: bold; color : #2668cb; font-size:16px; line-height:0px; }");
	nd.writeln("	h2 { font-weight: bold; color : #2668cb; font-size:14px; }");
	nd.writeln("	p { color : #111111; font-size:12px; margin : 16px 20px 16px 20px; text-align:left; }");
	nd.writeln("	hr { color: #bcbcbc; background-color: #bcbcbc; border-color: #bcbcbc; border-width: 1px; }");
	nd.writeln("	a, a:link , a:visited { text-decoration : none ; color : #2668cb; }");
	nd.writeln("	a:hover { text-decoration : underline }");
	nd.writeln("	.gen { text-align: center; }" );
	nd.writeln("// -->" );
	nd.writeln("</style>");

	nd.writeln("<title>" + winname + "</title>");
	nd.writeln("</head>");

	nd.writeln("<body>");
	nd.writeln("<div class='gen'>");
	nd.writeln("<h2>" + _memname + "</h2>");
	nd.writeln("<img src='" + srcname + "' />");
	if( _title )	{	nd.writeln( "<h2>" + unescape( _title ) + "</h2>");	}
	if( _comments )	{	nd.writeln( "<p>" + unescape( _comments ) + "</p>");	}
	nd.writeln("<hr /><a href='javascript:window.close();'>Close Window</a><hr />");
	nd.writeln("</div>");
	nd.writeln("</body></HTML>");

	nd.close();


//	window.focus();
	newwin.focus();
	return	true;
}

var detect = navigator.userAgent.toLowerCase();


function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	return place;
}
