/*
+-----------------------------------------------------------------+
| Fn name:    popwin                                              |
+-----------------------------------------------------------------+
| Purpose:    Opens popup window w/fixed window options           |
+-----------------------------------------------------------------+
| Inputs:     string URL                                          |
|             string name (name of popup window)                  |
|             int w (width of popup window)                       |
|             int h (height of popup window)                      |
+-----------------------------------------------------------------+
| Returns:    nothing                                             |
+-----------------------------------------------------------------+
*/
function popwin(URL, name, w, h)
{
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
	window.open(URL, name, "width="+w+", height="+h+", status=yes, scrollbars=yes, resizable=no, menubar=no, toolbar=no, left="+winl+", top="+wint);
}


/*
+-----------------------------------------------------------------+
| Fn name:    popwin2                                             |
+-----------------------------------------------------------------+
| Purpose:    Opens popup window w/customizable window options    |
+-----------------------------------------------------------------+
| Inputs:     string URL                                          |
|             string name (name of popup window)                  |
|             int w (width of popup window)                       |
|             int h (height of popup window)                      |
|             string opts (other popup window options)            |
+-----------------------------------------------------------------+
| Returns:    nothing                                             |
+-----------------------------------------------------------------+
| History:    10/31/2005 - cpn_id is set to empty string if not   |
|                          passed instead of "undefined" [ft]     |
+-----------------------------------------------------------------+
*/
function popwin2(URL, name, w, h, opts)
{
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
	window.open(URL, name, "width="+w+", height="+h+", left="+winl+", top="+wint + opts);
}