  function getHTMLfromText(strIn)
  {
    var strTemp = "";
    var browserVersion = parseInt(navigator.appVersion);
    for (x=0; x < strIn.length; x++)
    {
      if (strIn.substring(x,x+1) == "\r" || strIn.substring(x,x+1) == "\n")
      {
        strTemp = strTemp + "<br />";
        
        // ADD 1 TO INCOMING STRING IF BROWSER IS IE
        if ((navigator.appName.indexOf('Netscape') == -1 && navigator.userAgent.indexOf('Mac') == -1) || 
            (navigator.appName.indexOf('Netscape') != -1 && browserVersion == 4))
        {
          x++;
        }
      }
      else if (strIn.substring(x,x+1) == "'")
      {
        strTemp = strTemp + "&#39;";
      }
      else if (strIn.substring(x,x+1) == '"')
      {
        strTemp = strTemp + "&#34;";
      }
      else if (strIn.substring(x,x+1) == '&')
      {
        strTemp = strTemp + "&#38;";
      }
      else if (strIn.substring(x,x+1) == '>')
      {
        strTemp = strTemp + "&#62;";
      }
      else if (strIn.substring(x,x+1) == '<')
      {
        strTemp = strTemp + "&#60;";
      }
      else
      {
        strTemp = strTemp + strIn.substring(x,x+1);
      }
    }
    return strTemp;
  }


  function isEI7()
  {
    if (document.documentElement && typeof document.documentElement.style.maxHeight!="undefined")
    {
      return true;
    }
    else
    {
      return false;
    }
  }