/*

	/global/global.js
	===================================
	ShowImage
	
*/

// Global Constants

var vbCrLf = "\r\n";
var vbTab = "\t";


// Global Functions

function ShowImage(strUrl, strTitle, strAlt) {
	if (strUrl.length > 0) {
		var intHeight = 200;
		var intWidth = 200;
		var intTop;
		var intLeft;
		var ImageViewer;
		var strImageViewerProperties;

		intTop = window.screen.height;
		intLeft = window.screen.width;
		strImageViewerProperties = "channelmode=no,directories=no,fullscreen=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=yes,toolbar=no,top="+intTop+",left="+intLeft+",height="+intHeight+",width="+intWidth;

		ImageViewer = window.open("/picture.asp?url="+strUrl+"&title="+strTitle+"&alt="+strAlt, "ImageViewer", strImageViewerProperties);
		intTop = (window.screen.availHeight - intHeight)/2;
		intLeft = (window.screen.availWidth - intWidth)/2;

		ImageViewer.resizeTo(intWidth, intHeight);
		ImageViewer.moveTo(intLeft, intTop);
	}
}

