
function makePopup( mylink , windowName , width , height ) {

  // If this browser does not have the window.focus method, then 
  // return true to allow the main window to follow the requested link.
  if(window.focus === false )
    return true;

  // Define 'href' as a variable
  var href;

  // Determine the target link for the window.
  if( typeof( mylink ) == 'string')
    href=mylink;
  else
    href=mylink.href;

  // Open the popup window
  window.open( href, windowName, 'width=' + width + ',height=' + height + ",scrollbars=yes" );

  // Return false so that the main window will not navigate to the
  // URL within an onClick.
  return( false );
}

function makeResizablePopup( mylink , windowName , width , height ) {

  // If this browser does not have the window.focus method, then 
  // return true to allow the main window to follow the requested link.
  if(window.focus == false )
    return true;

  // Define 'href' as a variable
  var href;

  // Determine the target link for the window.
  if( typeof( mylink ) == 'string')
    href=mylink;
  else
    href=mylink.href;

  // Open the popup window
  window.open( href, windowName, 'width=' + width + ',height=' + height + ",scrollbars=yes,resizable=yes" );

  // Return false so that the main window will not navigate to the
  // URL within an onClick.
  return( false );
}