<!-- Hide from old browsers
var navName = "";
var navVersion = 0;
if (navigator.appName.indexOf("Netscape") >= 0) {
   navName = "Netscape";
} else if (navigator.appName.indexOf("Microsoft") >= 0) {
   navName = "Microsoft";
}
navVersion = parseInt(navigator.appVersion);
if (navName == "Netscape" && navVersion >= 5) {
  if (document.getElementById("p").childNodes.length <= 1) {
    document.getElementById("p").style.visibility = "hidden";
  } else {
    document.getElementById("p").style.marginRight = "4";
  }
} else if (navName == "Microsoft" && navVersion >= 4) {
  if (document.all.p.childNodes.length <= 0) {
    document.all.p.style.visibility = "hidden";
  } else {
    document.all.p.style.marginRight = "4";
  }
}

function getElementFunction() {
// Return the text string of the document's Get Element function, or null if none.

if (document.getElementById) return "getElementById"
if (document.all) return "all";
return "";
}

function getStyle(element, styleName) {
  var sGetElement = getElementFunction();
  var styleValue = "";

  if (sGetElement != "") {
    eval("styleValue = document." + sGetElement + "(element).style." + styleName);
  }
  return styleValue;

}

function setStyle(element, styleName, styleValue) { 
  var sGetElement = getElementFunction();

  if (sGetElement != "") {
    eval("document." + sGetElement + "(element).style." + styleName + " = '" + styleValue + "'");
  }

}

function setText(element, sText) {
  var sGetElement = getElementFunction();

  if (sGetElement != "") {
    sText = sText.replace(/\'/g, "\\'");
    sText = sText.replace(/[\f\n\r]/g, ""); // required by Netscape 7.2 (and others?)
    eval("document." + sGetElement + "(element).innerHTML = '" + sText + "'");
  }

}

// Stop hiding from old browsers -->
