void update_stats()
        {
            List <string> lines = HTML.GetHead("", "", Session.Preferences.TextSize);

            lines.Add("<BODY>");

            if (fCreatures.Count != 0)
            {
                lines.Add("<P class=table>");
                lines.Add("<TABLE>");
                lines.Add("<TR class=heading>");
                lines.Add("<TD colspan=3><B>Selected Creatures</B></TD>");
                lines.Add("</TR>");

                foreach (ICreature c in fCreatures)
                {
                    lines.Add("<TR class=header>");
                    lines.Add("<TD colspan=2>" + c.Name + "</TD>");
                    lines.Add("<TD align=center><A href=remove:" + c.ID + ">remove</A></TD>");
                    lines.Add("</TR>");
                }

                lines.Add("</TABLE>");
                lines.Add("</P>");
            }
            else
            {
                lines.Add("<P class=instruction>");
                lines.Add("You have not yet selected any creatures; to select a creature, drag it from the list at the left onto the box above");
                lines.Add("</P>");
            }

            foreach (ICreature creature in fCreatures)
            {
                EncounterCard card = new EncounterCard(creature);

                lines.Add("<P class=table>");
                lines.AddRange(card.AsText(null, CardMode.View, false));
                lines.Add("</P>");
            }

            lines.Add("</BODY>");
            lines.Add("</HTML>");

            string html = HTML.Concatenate(lines);

            Browser.Document.OpenNew(true);
            Browser.Document.Write(html);
        }
        private void update_stats()
        {
            List <string> head = HTML.GetHead("", "", DisplaySize.Small);

            head.Add("<BODY>");
            if (this.fCreatures.Count == 0)
            {
                head.Add("<P class=instruction>");
                head.Add("You have not yet selected any creatures; to select a creature, drag it from the list at the left onto the box above");
                head.Add("</P>");
            }
            else
            {
                head.Add("<P class=table>");
                head.Add("<TABLE>");
                head.Add("<TR class=heading>");
                head.Add("<TD colspan=3><B>Selected Creatures</B></TD>");
                head.Add("</TR>");
                foreach (ICreature fCreature in this.fCreatures)
                {
                    head.Add("<TR class=header>");
                    head.Add(string.Concat("<TD colspan=2>", fCreature.Name, "</TD>"));
                    head.Add(string.Concat("<TD align=center><A href=remove:", fCreature.ID, ">remove</A></TD>"));
                    head.Add("</TR>");
                }
                head.Add("</TABLE>");
                head.Add("</P>");
            }
            foreach (ICreature creature in this.fCreatures)
            {
                EncounterCard encounterCard = new EncounterCard(creature);
                head.Add("<P class=table>");
                head.AddRange(encounterCard.AsText(null, CardMode.View, false));
                head.Add("</P>");
            }
            head.Add("</BODY>");
            head.Add("</HTML>");
            string str = HTML.Concatenate(head);

            this.Browser.Document.OpenNew(true);
            this.Browser.Document.Write(str);
        }