/* function to control the size and position of most popup windows */
function popupWindow(content,w,h) {
		
		leftPos = 0
		if (screen) {
			leftPos = (screen.width-w)/2
		}
			newWindow = window.open(content, "newWin", "width="+w+",height="+h+",left="+leftPos+",top=50,scrollbars=yes")
}

/* function to control the size and position of popup windows that contain maps */
function popupMap(content,w,h) {
		
		leftPos = 0
		if (screen) {
			leftPos = (screen.width-w)/2
		}
			newWindow = window.open(content, "newWin", "width="+w+",height="+h+",left="+leftPos+",top=0,scrollbars=yes")
}
