/**
 * Author: Joe Boland
 * Date: 01/18/2001
 *
 * new popup window; focus when loaded or reloaded
 *
 * required: url of page to load in window
 *           width of window
 *           height of window
 *
 * optional: menubar - bar with File, Edit, etc.
 *           toolbar - bar with Back, Forward, Home, etc.
 *           location - address bar
 *           status - bottom bar contain link status, etc.
 *           scrollbars - scrollbars appear if necessary
 *           resizable - allow window to be resized           
 */

function popup(url, width, height) {
  var features = 'width=' + width + ',height=' + height;
  if (arguments[4] != 'undefined')
     for (var i=4; i<arguments.length; i++)    
       features += "," + arguments[i];
  var popupWindow = top.open(url,'popup',features);
  popupWindow.focus();
} // end function popup