  topLocation    = 0;               //pixel location of top of window
  leftLocation   = 0;               //pixel location of left of window
  showAddressbar = 'no';            //show browser address bar?
  showLinks      = 'no';            //show browser links bar?
  showMenubar    = 'no';            //show menu bar (File, Edit, etc.)?
  showToolbar    = 'no';            //show toolbar (Back, Forward, Refresh, etc.)?


function NewWindow(poplink, windowname, popwidth, popheight) {
  // Window settings for XHTML application.
  windowWidth    = popwidth;              //default window width
  windowHeight   = popheight;              //default window height
  showScrollbars = 'no';             //show vertical and/or horizontal scrollbars?
  showStatusbar  = 'no';            //show browser status bar?
  isResizable    = 'yes';            //should window be resizable?

  // Set up chosen settings.
  settings='width='+windowWidth+',height='+windowHeight+',scrollbars='+showScrollbars+',location='+showAddressbar+',directories='+showLinks+',status='+showStatusbar+',menubar='+showMenubar+',toolbar='+showToolbar+',resizable='+isResizable;
  // Open the new window.
  window.open(poplink,windowname , settings);

}


