// JavaScript Document

function popup(mypage,myname,w,h,features) {
            var win = null;
            //alert(features)
            var winl = (screen.width-w)/2;
            var wint = (screen.height-h)/2;
            if (winl < 0) winl = 0;
            if (wint < 0) wint = 0;
            if (features == true) {
                        features = "toolbar,menubar,scrollbars,resizable,location"
                        wint = wint-100;
            }
            else {
                        wint = wint-50;
            }
            var settings = 'height=' + h + ',';
            settings += 'width=' + w + ',';
            settings += 'top=' + wint + ',';
            settings += 'left=' + winl + ',';
            settings += features;
            win = window.open(mypage,myname,settings);
            win.window.focus();
}
