// Browser version utilities
// Copyright 2000 by reactivity, inc.
// author: mikel evins
// Version 1.0 -- 3/15/00

// Supports Netscape and IE, versions 4.x and greater, only
// 
// NOTE: Remove all comments before publishing to minimize
// client download time

// ========================================================
// Modification History
// ========================================================
//
//  4/ 1/00 -- mle -- Initial HTML/JavaScript code

// ========================================================
// REQUIREMENTS
// ========================================================
// Requires: None
	
// ========================================================
// PROVIDES
// ========================================================
// var isIE
// var isNS
// function doubleQuote()
// function inspect(obj)
// function warnBrowserVersion()
	
// ========================================================
// GENERAL UTILITY
// ========================================================

function inspect(obj)
{
  result = ""
    for (nm in obj)
      {
	result += nm + ", "
      }
  return result
}

// ----------------------------------------
// FUNCTION: warnBrowserVersion()
// ----------------------------------------
// Prints a warning that the client browser is unsupported

function warnBrowserVersion()
{
  alert("The JavaScript code in this page requires Internet Explorer or Netscape Navigator, version 4.0 or later")
}

// ----------------------------------------
// CODE: load-time initialization
// ----------------------------------------
// Determine the client browser version at load time

if (parseInt(navigator.appVersion) >= 4) 
{
  if (navigator.appName == "Netscape") 
    {
      isNS = true;
      isIE = false;
    } else if (navigator.appName == "Microsoft Internet Explorer") {
      isNS = false;
      isIE = true;
    } else {
      isNS = false;
      isIE = false;
      warnBrowserVersion();
    }
}

// ----------------------------------------
// FUNCTION: doubleQuote()
// ----------------------------------------
function doubleQuote()
{
  return '"';
}

