function openViewer(imgTag,imgW,imgH){	// These varibles get the exact pixel height and width for YOUR computer's resolution.	var iMyWidth;	var iMyHeight;		//this formula takes half the total screen width and subtracts half the new window width (plus 5 pixel borders for your browser window).	iMyWidth = (window.screen.width/2) - ((imgW/2) + 10);	newW = imgW + 20		//this formula does the same thing but for the height, but also accomodates for the title bar and a small border on the bottom.	iMyHeight = (window.screen.height/2) - ((imgH/2) + 60);	var newH = imgH + 40;		var winopts = "status=0,toolbar=0,scrollbars='No',directories=0,location=0,menubar=0,width="+newW+",height="+newH+",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",channelmode=0,dependent=0,fullscreen=0,resizable=0";	var newOne = window.open("", "newOne",winopts);	var result= doText(imgTag,imgW,imgH);	newOne.document.write(result);	newOne.document.close();	newOne.focus();}function doText(imgTag,imgW,imgH){	result = '<HTML><HEAD><TITLE>Veracity</TITLE><link rel="STYLESHEET" type="text/css" href="includes/PopViewer.css"></HEAD>';	result += '<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onBlur="javascript:window.close(self);"><center>';	result += '<div id="popWin" onMouseDown="javascript:window.close(self);">';	result += '<a href="javascript:window.close(self);"><IMG SRC="'+ imgTag +'" WIDTH='+imgW+' HEIGHT='+imgH+' ALT="" border="1"></a><br>';	result += '<a href="javascript:window.close(self);">Click to close window</a></div>';	result += '</center></BODY></HTML>';		return (result);}//end
