// new window function
var newWindow = null
function openWindow(theURL,winName,features) {
	// check if new window exists
	if (!newWindow || newWindow.closed) {
		// open window and size to fit screen
		newWindow = window.open(theURL,winName,features);
		} else {
		// bring window into focus instead
		newWindow.focus()
		}
}
