<!--
// File: cugce/JS/openHelpWin.js
// Purpose: JavaScript function to open GCE at CU Help windows.
// Copyright 2001-2002, Clemson University Department of Physics and Astronomy.
//   All rights reserved.
// Author: Joel E. Denny.
// Created: 06/02/02.
// Last modified: 08/21/02 - jed.

function openHelpWin(page,height_width,height) {
  var width;
  if (!height) {
    width=550;
    height=height_width;
  }
  else width=height_width;

  // pass noWinResize parameter to help page.
  if (
    document.globalFeaturesForm
    &&
    document.globalFeaturesForm.noWinResize.value=='1'
  ) {
    if (page.indexOf('?')!=-1) page+='&';
    else page+='?';
    page+='noWinResize=1';
  }

  // open page.
  win_handle=window.open(page,'_blank',
    'width='+width+',height='+height+',screenX=20,screenY=20,left=20,top=20,'+
    'scrollbars=1,resizable=1,menubar=1');
  win_handle.focus();
  return false;
}
// -->

