<!-- popUp JS -->
<!-- Updated: 04/04/2005 -->

function popUp(URL, windowOptions) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', windowOptions);");
}

/*
Position and size features

left
    Specifies the distance the new window is placed from the left side of the work area for applications of the user's operating system to the leftmost border (resizing handle) of the browser window. The new window can not be positioned offscreen. The left value must be positive.
top
    Specifies the distance the new window is placed from the top side of the work area for applications of the user's operating system to the topmost border (resizing handle) of the browser window. The new window can not be positioned offscreen. The top value must be positive.
height
    Specifies the height of the content area, viewing area of the new secondary window in pixels. The height value includes the height of the horizontal scrollbar if present. The minimum required is 100 pixels.
width
    Specifies the width of the content area, viewing area of the new secondary window in pixels. The width value includes the width of the vertical scrollbar if present. The width value does not include the sidebar if it is expanded. The minimum required is 100 pixels.
screenX
    Deprecated. Same as left.
screenY
    Deprecated. Same as top.
outerHeight
    Specifies the height of the whole browser window in pixels. This outerHeight value includes any/all present toolbar, window horizontal scrollbar (if present) and top and bottom window resizing borders. Minimal required value is 100 pixels.
    Note: since titlebar is always rendered, then requesting outerHeight=100 will make the innerHeight of the browser window under the minimal 100 pixels.
outerWidth
    Specifies the width of the whole browser window in pixels. This outerWidth value includes the window vertical scrollbar (if present) and left and right window resizing borders.
innerHeight
    Same as height.
innerWidth
    Same as width.
    
Toolbar and chrome features

location
    If this feature is set to yes, then the new secondary window will render the Location bar.
menubar
    If this feature is set to yes, then the new secondary window will render the menubar.
    Mozilla and Firefox users can force all windows to have a menubar by setting
    dom.disable_window_open_feature.menubar to true in about:config or in their user.js file.
directories
    If this feature is set to yes, then the new secondary window will render the Bookmarks Toolbar in Firefox and it will render the Personal Toolbar other Mozilla-based browsers. In addition to the Personal Toolbar, Mozilla browser will render the Site Navigation Bar if such toolbar is visible, present in the parent window.
toolbar
    If this feature is set to yes, then the new secondary window will render the Navigation Toolbar (Back, Forward, Reload, Stop buttons). In addition to the Navigation Toolbar, Mozilla-based browsers will render the Tab Bar if it is visible, present in the parent window.
status
    If this feature is set to yes, then the new secondary window will have a status bar. Users can force the rendering of status bar. The default setting is to force the presence of the status bar.
personalbar
    Same as directories.
titlebar
    By default, all new secondary windows always have a titlebar. If set to no and if enhanced privileged security access is granted by the user, then it would remove the titlebar from new secondary windows. 
    
Window functionality features

resizable
    If this feature is set to yes, then it will make the new secondary window resizable.
    Note: Mozilla-based browsers since version 1.4 will have a window resizing grippy at the right end of the status bar; this is to assure users that they can resize a browser window even when the web author explicitly or implicitly requested to make such secondary window non-resizable. In such case, the maximize/restore down system command icon in the titlebar will be disabled and window resizing borders will be unresponsive but the window will still be resizable via that window resizing grippy in the status bar.

    Tip: For accessibility reasons, it is strongly recommended to always set this feature to yes.
    Mozilla and Firefox users can force all windows to be easily resizable by setting
    dom.disable_window_open_feature.resizable
    to true in about:config or in their user.js file.
scrollbars
    If this feature is set to yes, then the new secondary window will render scrollbar(s) if needed, only if document content box overflows window dimensions.

    Tip: For accessibility reasons, it is strongly recommended to always set this feature to yes.
    Users can force all windows to render scrollbars when needed, when a document content overflow occurs by setting
    dom.disable_window_open_feature.scrollbars
    to true in about:config or in their user.js file.
dependent
    If set to yes, the new window is said to be dependent of its parent window. A dependent window closes when its parent window closes. A dependent window is minimized on the Windows task bar only when its parent window is minimized. On Windows platforms, a dependent window does not show on the task bar. A dependent window will also stay in front of the parent window.
modal
    If set to yes, the new window is said to be modal. The modal feature makes the new, secondary window stay on top/in front of its opener. Modal windows do not appear on the Windows task bar and can not be minimized on the Windows task bar. Another unrelated browser window may still be placed above the modal window.
    The exact behavior of modal windows depends on the platform and on the Mozilla release version.
dialog
    If set to yes, the new window is said to be a dialog window. Dialog windows are windows which have no minimize system command icon nor maximize/restore down system command icon on the titlebar. They are said to be dialog because their normal, usual purpose is to only notify info and to be dismissed, closed.
minimizable
    This setting can only apply to dialog windows. If minimizable is set to yes, then the new dialog window will render a minimize system command icon and it will be minimizable.
alwaysRaised
    If set to yes, the new window to be created will float on top of, in front of any other browser windows, whether it is active or not. This feature requires enhanced privileged security access granted by the user. At the time of writing this file, alwaysRaised feature is not supported and neither in recent Mozilla releases due to a bug.
alwaysLowered
    If set to yes, the new created window will float below, under its own parent when the parent window is not minimized. alwaysLowered windows are often referred as pop-under windows. This feature requires enhanced privileged security access granted by the user. At the time of writing this file, alwaysLowered feature is not supported and neither in recent Mozilla releases due to a bug.
z-lock
    Same as alwaysLowered.
close
    When set to no, this feature removes the system command icons and system command menu. This feature requires both enhanced privileged abilities granted by the user and the feature dialog=yes. close=no will override minimizable=yes. 
*/