function winPop(imgSrc, imgTitle)
{
	strAttributes = "scrolling=no, width=555, height=415, resizable";
//	windowHandle = window.open('', 'windowname', ''); 
//	windowHandle.close()
	popUp = window.open('', 'popupwin1', strAttributes);
	popUpDoc = popUp.document;
	popUpDoc.open("text/html", "replace");
	popUpDoc.write('<HTML><HEAD><TITLE>&nbsp;&nbsp;click on image to close&nbsp;&nbsp;&nbsp;</TITLE></HEAD><BODY onLoad="self.resizeTo(document.imgItemPic.width+5, document.imgItemPic.height+25)" style="margin: 0px"><a href="#" onClick="self.close()"><img src="' + imgSrc + '" name="imgItemPic" style="border: none" /></a></BODY></HTML>');
	popUpDoc.close();
	popUp.focus();
}

/*
function winPop2(imgSrc, imgWidth, imgHeight)
{
	strAttributes = "scrolling=no, width=" + imgWidth + " , Height=" + imgHeight;
//	windowHandle = window.open('', 'windowname', ''); 
//	windowHandle.close()
	popUp = window.open(imgSrc, 'popupwin1', strAttributes); 
	popUp.resizeTo(imgWidth, imgHeight)
	popUp.focus()
}
*/
