// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//  © Copyright 2000, Calypso Systems, Inc.
//  All Rights Reserved.
//
//  Description:  Internet Explorer 5.x Function Library
//
//  Who                     When         What
//  ------------------------------------------------
//  lGoodman@calsys.com     01/17/00     Created
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function xAll(sName)
{
  if (nav.ie4 == true)
  {
    return document.all[sName];
  }
  else
  {
    return document.getElementById(sName);
  }
    
    
}
var xCmd = new xCommand();

xAll.refresh = function()
{
}

function xCommand()
{
  this.supports = new Object();
  this.supports.redirect = true;
  this.supports.setFocus = true;
  this.supports.outerHTML = true;
  this.supports.innerHTML = true;
  this.supports.executeJavascript = true;
  this.supports.innerText = true;
  this.supports.alert = true;
}

// Redirect
xCommand.prototype.redirect = function(sUrl)
{
  window.navigate(sUrl);
}

// setFocus
xCommand.prototype.setFocus = function(sElementName)
{
  document.all(sElementName).focus();
}

// outerHTML
xCommand.prototype.outerHTML = function(sElementName,sNewValue)
{
  document.all(sElementName).outerHTML = sNewValue;
}

// innerHTML
xCommand.prototype.innerHTML = function(sElementName,sNewValue)
{
  document.all(sElementName).innerHTML = sNewValue;
}

// innerText
xCommand.prototype.innerText = function(sElementName,sNewValue)
{
  document.all(sElementName).innerText = sNewValue;
}

// executeJavascript
xCommand.prototype.executeJavascript = function(sScript)
{
  eval(sScript);
}

// alert
xCommand.prototype.alert = function(sAlertText)
{
  alert(sAlertText);
}




