function viewPicture(myURL, myPictureName, myWidth, myHeight){

	var leftPos= 0;

	myWidth += 20;
	myHeight += 30;

	if (screen){
		var myScreenWidth = screen.width;
		leftPos = ((myScreenWidth / 2) - (myWidth / 2));
			}
	var myWindowProps = "toolbars=no, location=no, scrollbars=no, resizable=no, width=" + myWidth + ", height=" + myHeight + ", left=" + leftPos + ", top=40" ;

	newWindow = null;

	newWindow = window.open(myURL, "newWin", myWindowProps);
	newWindow.document.write("<html><head><title>" + myPictureName + "<\/title><\/head><body><a href='javascript:this.close()'><img src='"+myURL+"' border='0' alt='Click picture to close it'><\/a><\/body><\/html>");
	newWindow.document.close();
	newWindow.focus();

}