/* ----------------------------------------------------------------------
* Harmonie WebKit for Health Care v.2
*
* (c) Copyright 1999, Harmonie Group, Inc.  All rights reserved.
*
* This source code is owned by Harmonie Group, Inc.  Copying or
* distributing any part of this file, electronically or otherwise, either
* in its original or derivative form, or altering or removing this
* copyright notice is in violation of federal and international copyright 
* laws.
* ==========================================================================
* FILE: wkutil-javascript.js
* AUTHOR: Chris Perkins
* CREATION DATE: 25 August 1999
*
* DESCRIPTION:
* WebKit utility javascript functions
*
* NOTES:
*
* MODIFICATIONS:
*/

/*************
 wkRegisterWC
 Utility: Well-Connected
 Description: run registration script on Well-Connected site to auto-login user
 then redirect to requested page
**************/
  function wkRegisterWC(url) {
    // set the URL to the registration processing script, passing
	// required username and password info
    var wcRegURL = "http://www.well-connected.com/signin.cgi?userid=chris&passwd=medicallibrary";
    // open a new window and execute the registration
    var wcWindow = window.open(wcRegURL, 'WellConnected', 'toolbar=no,directories=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes,width=600,height=600');
	//need to pause to be sure registration finishes before moving on
	//????
	
	// open the link we really want to go to in the new window
    wcWindow.location.href = url;
    // focus the new window in case it has been minimized
    wcWindow.focus();

    return;
  }

/*************
 wkOpenInternet
 Utility: Internet
 Description: Open a new window to NWH Internet website
**************/
  function wkOpenInternet() {
    var internetURL = "http://www.nwh.org";
    // open a new window and load website
    var internetWindow = window.open(internetURL, 'Internet', 'toolbar=yes,directories=yes,menubar=yes,location=yes,scrollbars=yes,status=yes,resizable=yes,width=700,height=600');

    internetWindow.focus();

    return;
  }
  