function openPictureWindow(theURL, windowname) 
{ 
	var  screenX, screenY, popW, popH,imageWidth1,imageHeight1;
	winWidth = 600;
	winHeight = 500;
	screenY = window.screen.availHeight;
	screenX = window.screen.availWidth;
	leftW = (screenX-winWidth) / 2;
	topH = (screenY-winHeight) / 2;
	window.open(theURL, windowname,"width="+winWidth+",scrollbars=yes,status=yes,height="+winHeight+",top="+topH+",left="+leftW); 
}