function popImage(imgURL) {

var myURl = 'popImage.asp?img=' + imgURL;

	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}
	
	var popW = 500, popH = 400;
	
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	
	window.open(myURl,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);


}