
// For JavaScript 1.1 browsers, open a new window
// Openpopup allows users to open links in a new browser window
// URL is URL to open in new window
// window_name is name of new window - default is helpWin
// width is width of new window, default is 465
// height is height of new window, default is 310
// additionalAttributes are any additional attributes to add
// menubar, toolbar, location, and status are the only recommended
// and tested attributes

function openpopup(URL, name, width, height, addlAttributes) 
{
  if (name == null) name = 'popup';
  if (width == null) width = '465';
  if (height == null) height = '310';
  var attributes = 'width='+width+',height='+height+',scrollbars=yes,resizable=yes,menubar=no';
  if (addlAttributes != null)
  {
     attributes +=  ',' +addlAttributes;
  }	

  // Open the window
  var newWindow = window.open(URL,name,attributes);

  newWindow.focus();        // Bring window to front
}

function closepopup()
{                  	 
  parent.close();
}
