// Function to create dynamic pop up window, currently set to center window on screen.

function newWindow(url, wid, hgt, scr, res, x, y) {
    if (screen) {
        widthOfScreen = screen.width
        heightOfScreen = screen.height
    }
    midX = widthOfScreen / 2
    midY = heightOfScreen / 2
    midWid = wid / 2
    midHgt = hgt / 2
    x = midX - midWid
    y = midY - midHgt
    popUpWindow = window.open(url, 'popUp', 'width='+wid+',height='+hgt+',scrollbars='+scr+',resizable='+res+',left='+x+',top='+y+'')
}


