/* -------------------------------------------------------- */
/*                                                          */
/* Javascript source for Va-Hi.com                          */
/*                                                          */
/* Author:                                                  */
/*                                                          */
/*   Michael T. Patterson                                   */
/*   Virginia-Highland Software, Inc.                       */
/*   http://www.va-hi.com                                   */
/*                                                          */
/* Version 1.0                                              */
/* May 2000                                                 */
/*                                                          */
/* -------------------------------------------------------- */

// Open a new window.
// -----------------

var newWindow  // This var needs to be global.

function openNewWindow(URL,WindowName,WindowSpecs) {

  if( !newWindow || newWindow.closed ) {

    if( WindowSpecs ) {
      newWindow = window.open(URL,WindowName,WindowSpecs);
    } else {
      newWindow = window.open(URL,WindowName);
    }

  } else {

    newWindow.location = URL;
    newWindow.focus();  // Bring existing window to front.

  }  // End of outer if-clause.

  return false;   // Always return with false.  This ensures that scriptable browsers override the HREF attribute.
}

