function launchGallery(what) {
LeftPosition = (screen.width) ? (screen.width-400)/2 : 0;
TopPosition = (screen.height) ? (screen.height-300)/2 : 0;
settings =
'width=400,height=300,top=' + TopPosition + ',left=' + LeftPosition + ',directories=no,status=no,scrollbars=auto,location=no,resize=no,menubar=no' 
gallery = window.open(what,"gallery", settings)
}

function launchPic(what) {
TopPosition = (screen.height) ? (screen.height-300) : 0;
settings =
'height=216,width=154,top='+TopPosition+',left=775,scrollbars=no,resizable=no'
pic = window.open(what,"pics",settings)
}

function closePic() {
	if (pic && !pic.closed) {
			pic.close()
		}
	}








