public string writeTitles(string fullColCount)
        {
            int           iFullColCount = DisplayHelpers.GetIntValue(fullColCount);
            int           i             = 0;
            string        sHtml         = string.Empty;
            StringBuilder oHtml         = new StringBuilder();

            while (i != iFullColCount)
            {
                if (i == 0)
                {
                    oHtml.Append("<th scope='col'>All</th>");
                }
                else
                {
                    oHtml.Append("<th scope='col'>Alt. ");
                    oHtml.Append((i - 1));
                    oHtml.Append("</th>");
                }
                i++;
            }
            sHtml = oHtml.ToString();
            oHtml = null;
            return(sHtml);
        }
        public string WriteMobileTitles(string fullColCount)
        {
            int           iFullColCount = DisplayHelpers.GetIntValue(fullColCount);
            int           i             = 0;
            string        sHtml         = string.Empty;
            bool          bIsEvenNumber = true;
            StringBuilder oHtml         = new StringBuilder();

            while (i != iFullColCount)
            {
                if (bIsEvenNumber)
                {
                    oHtml.Append("<div class='ui-block-a'>Alt. ");
                    oHtml.Append((i - 1));
                    oHtml.Append("</div>");
                }
                else
                {
                    oHtml.Append("<div class='ui-block-b'>Alt. ");
                    oHtml.Append((i - 1));
                    oHtml.Append("</div>");
                }
                i++;
                bIsEvenNumber = bIsEvenNumber ? false : true;
            }
            sHtml = oHtml.ToString();
            oHtml = null;
            return(sHtml);
        }
        //print all column values
        public string doPrintValues(string fullColCount)
        {
            string sHtml         = string.Empty;
            int    iFullColCount = DisplayHelpers.GetIntValue(fullColCount);

            if (iFullColCount != 0)
            {
                //write a new table column with it's value
                int           i     = 0;
                StringBuilder oHtml = new StringBuilder();
                while (i != (iFullColCount - 1))
                {
                    oHtml.Append("<td>");
                    if (arrValues != null)
                    {
                        if (arrValues[i] == "empty")
                        {
                            oHtml.Append("0.00");
                        }
                        else
                        {
                            oHtml.Append(arrValues[i]);
                        }
                    }
                    oHtml.Append("</td>");
                    i++;
                }
                sHtml = oHtml.ToString();
                oHtml = null;
                //reset the arrays
                arrValues = null;
                arrNOPs   = null;
            }
            return(sHtml);
        }
        public string WriteMobileNames(string description, string fullColCount)
        {
            string sHtml = string.Empty;

            if (description != string.Empty && description != null)
            {
                string[] arrNames = description.Split(DELIMITER_NAME);
                if (arrNames != null)
                {
                    StringBuilder oHtml                  = new StringBuilder();
                    string        sDisplayName           = string.Empty;
                    string        sNewFileCountExtension = string.Empty;
                    string        sOldFileCountExtension = string.Empty;
                    int           iCount                 = arrNames.Length;
                    int           i = 0;

                    int  iCurrentColCount = 0;
                    int  j             = 0;
                    bool bIsEvenNumber = true;
                    while (i != iCount)
                    {
                        //limited to 30 chars for displaying
                        string sName = arrNames[i];
                        GetValues(sName, out sDisplayName, out sNewFileCountExtension);
                        int  iNewFileCountExtension = DisplayHelpers.GetIntValue(sNewFileCountExtension);
                        bool bIsEvenJNumber         = true;
                        //keep identically numbered files (mult tp names) out of colcount and don't display
                        if (sNewFileCountExtension.Equals(sOldFileCountExtension) == false)
                        {
                            //insert placeholder cols, so names line up with correct column
                            for (j = iCurrentColCount; j < iNewFileCountExtension; j++)
                            {
                                if (bIsEvenJNumber)
                                {
                                    oHtml.Append("<div class='ui-block-a'>");
                                }
                                else
                                {
                                    oHtml.Append("<div class='ui-block-b'>");
                                }
                                oHtml.Append("</div>");
                                iCurrentColCount += 1;
                                bIsEvenJNumber    = bIsEvenJNumber ? false : true;
                            }
                            AppendMobileName(bIsEvenNumber, i, sName, ref oHtml);
                            iCurrentColCount += 1;
                        }
                        sOldFileCountExtension = sNewFileCountExtension;
                        i++;
                        bIsEvenNumber = bIsEvenNumber ? false : true;
                    }
                    sHtml = oHtml.ToString();
                    oHtml = null;
                }
                arrNames = null;
            }
            return(sHtml);
        }
        //temporary array to hold all values for NOP
        public void initValuesNOP(string fullColCount)
        {
            int iFullColCount = DisplayHelpers.GetIntValue(fullColCount);
            int j             = 0;

            arrNOPs = new string[iFullColCount];
            while (j != (iFullColCount - 1))
            {
                SetArraysValue(j, "empty");
                j++;
            }
        }
        //temporary array to hold all values
        public void initValues(string fullColCount)
        {
            int iFullColCount = DisplayHelpers.GetIntValue(fullColCount);
            int i             = 0;

            //always init the arrays
            arrValues = new string[iFullColCount];
            if (iFullColCount > 0)
            {
                while (i != (iFullColCount - 1))
                {
                    SetArraysValue(i, "empty");
                    i++;
                }
            }
        }
        public string DoPrintMobileValues(string fullColCount)
        {
            string sHtml         = string.Empty;
            int    iFullColCount = DisplayHelpers.GetIntValue(fullColCount);
            bool   bIsEvenNumber = true;

            if (iFullColCount != 0)
            {
                //write a new table column with it's value
                int           i     = 0;
                StringBuilder oHtml = new StringBuilder();
                while (i != (iFullColCount - 1))
                {
                    if (bIsEvenNumber)
                    {
                        oHtml.Append("<div class='ui-block-a'>");
                    }
                    else
                    {
                        oHtml.Append("<div class='ui-block-b'>");
                    }
                    oHtml.Append("Alt");
                    oHtml.Append(i);
                    oHtml.Append(": ");
                    if (arrValues != null)
                    {
                        if (arrValues[i] == "empty")
                        {
                            oHtml.Append("0.00");
                        }
                        else
                        {
                            oHtml.Append(arrValues[i]);
                        }
                    }
                    oHtml.Append("</div>");
                    i++;
                    bIsEvenNumber = bIsEvenNumber ? false : true;
                }
                sHtml = oHtml.ToString();
                oHtml = null;
                //reset the arrays
                arrValues = null;
                arrNOPs   = null;
            }
            return(sHtml);
        }
        public string writeStringFullColumnTH(string name, string fullColCount)
        {
            //no title cell in col1
            int iFullColCount = DisplayHelpers.GetIntValue(fullColCount) + 1;

            if (iFullColCount < 10)
            {
                //these are minimal 10 col styles
                iFullColCount = 10;
            }
            string        sHtml = string.Empty;
            StringBuilder oHtml = new StringBuilder();

            oHtml.Append("<th colspan='");
            oHtml.Append(iFullColCount);
            oHtml.Append("'>");
            oHtml.Append(name);
            oHtml.Append("</th>");
            sHtml = oHtml.ToString();
            oHtml = null;
            return(sHtml);
        }
        public string WriteMobileTitles2(string fullColCount, string title, string count1)
        {
            int           iFullColCount = DisplayHelpers.GetIntValue(fullColCount);
            int           iCount1       = DisplayHelpers.GetIntValue(count1);
            int           i             = 0;
            int           j             = 0;
            int           iNewStart     = 0;
            string        sHtml         = string.Empty;
            StringBuilder oHtml         = new StringBuilder();

            while (i != iFullColCount)
            {
                if (j != 0)
                {
                    iNewStart = i / j;
                }
                if (iNewStart == iCount1 || i == 0)
                {
                    //restart index
                    if (title.StartsWith("Alt"))
                    {
                        oHtml.Append("<th scope='col' colspan=");
                        oHtml.Append(count1);
                        oHtml.Append(">");
                        if (i == 0)
                        {
                            oHtml.Append("All Docs");
                        }
                        else
                        {
                            oHtml.Append(title);
                            oHtml.Append(" ");
                            oHtml.Append((j - 1));
                        }
                        oHtml.Append("</th>");
                        j += 1;
                    }
                    else
                    {
                        oHtml.Append("<th>" + "All");
                        oHtml.Append(" ");
                        oHtml.Append(i);
                        oHtml.Append("</th>");
                        j += 1;
                    }
                }
                else
                {
                    if (title.StartsWith("Alt") == false)
                    {
                        oHtml.Append("<th>" + title);
                        oHtml.Append(" ");
                        oHtml.Append(i);
                        oHtml.Append("</th>");
                    }
                }
                i++;
            }
            sHtml = oHtml.ToString();
            oHtml = null;
            return(sHtml);
        }