function newWindow(img, w, h, sbar) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+sbar+',resizable'
win = window.open(img, 'theNewWindow', winprops)
if (window.focus) {win.focus()}
}
