// this is needed for function newWindow below
var newWin = null

function newWindow(content, width, height, scroll, tool, menu, loc, dir, status, resize){
	//if (newWin != null)
	//	newWin.close()

	newWin = window.open(content, 'newWin', 'width=' + width + ',height=' + height + ',scrollbars=' + scroll + ',toolbar=' + tool + ',menubar=' + menu + ',location=' + loc + 'directories=' + dir + ',status=' + status + ',resizable=' + resize)
	
	newWin.focus()
	
}