function ShowImage(strImagePath, intImageWidth, intImageHeight)
{
	var ShowImageWin;
	var strName =  "ShowImages"
	var strFeatures;

	strFeatures = "dependent=yes,directories=no,location=no,menubar=no,resizable=yes,personalbar=no,scrollbars=no,titlebar=no,toolbar=no,screenX=50,screenY=50,top=50, left=50, width=" + intImageWidth.toString() + ", height=" + intImageHeight.toString()
	ShowImageWin = window.open(strImagePath, strName, strFeatures);
	ShowImageWin.focus();

	return false;
}

function ResizeFit(intImageWidth, intImageHeight)
{
	var intDiffWidth;
	var intFDiffHeight;

	if(navigator.appName=="Netscape")
	{
		intDiffWidth = intImageWidth - window.innerWidth;
		intDiffHeight = intImageHeight - window.innerHeight;
	}
	else
	{
		intDiffWidth = intImageWidth - window.document.body.clientWidth;
		intDiffHeight = intImageHeight - window.document.body.clientHeight;
	}

	window.resizeBy(intDiffWidth, intDiffHeight);
}