function windowPopup (url, wname, pxWidth, pxHeight, features) {

    def_features = 'status,menubar,scrollbars,resizable'
    use_features = (features == '') ? def_features : features;
    width = (pxWidth > 0) ? ',width='+pxWidth : '';
    height = (pxHeight > 0) ? ',height='+pxHeight : '';
    use_features = use_features + width + height;
    wid = window.open (url, wname, use_features);
    return wid;
}

function imagePopup (url, pxWidth, pxHeight) {
    return windowPopup (url, 'IMAGE', pxWidth, pxHeight, 'scrollbars,resizable');
}


function openDisplayWindow (url) {
  wid = window.open (url, 'FullScreen', 'status,scrollbars,resizable,height=1000,width=1280');
  return wid;
}

