﻿function NewWindow(mypage, myname, w, h, scroll) {
    //alert(w);
    if (w == 'UITGEZET') {
        //alert('UITGEZET');
        var width = '620';
        var height = '540';
        var winl = (screen.width - width) / 2;
        var wint = (screen.height - height) / 2;
        winprops = 'height=' + height + ',width=' + width + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable'
    }
    else {
        //alert('NIETUITGEZET');
        var winl = (screen.width - w) / 2;
        var wint = (screen.height - h) / 2;
        winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable'
    }
    win = window.open(mypage, myname, winprops)
    if (parseInt(navigator.appVersion) >= 4) {
        win.window.focus();
    }
}
