protected void NewTabButton_Click(object sender, ImageClickEventArgs e)
        {
            this.MessageBox1.ClearMessage();

            ProductDescriptionTab t = new ProductDescriptionTab();
            t.Bvin = System.Guid.NewGuid().ToString().Replace("{", "").Replace("}", "");

            if (localProduct.Tabs.Count > 0)
            {
                var m = (from sort in localProduct.Tabs
                         select sort.SortOrder).Max();
                t.SortOrder = m + 1;
            }
            else
            {
                t.SortOrder = 1;
            }

            localProduct.Tabs.Add(t);
            if (MTApp.CatalogServices.ProductsUpdateWithSearchRebuild(localProduct))
            {
                Response.Redirect("ProductsEdit_TabsEdit.aspx?tid=" + t.Bvin + "&id=" + localProduct.Bvin);
            }
            else
            {
                this.MessageBox1.ShowError("Unable to update product tabs.");
            }

            localProduct = MTApp.CatalogServices.Products.Find(localProduct.Bvin);
            LoadItems();
        }
        private void RenderSingleItem(StringBuilder sb, ProductDescriptionTab t)
        {

            string destinationLink = "ProductsEdit_TabsEdit.aspx?tid=" + t.Bvin + "&id=" + productBvin;

            sb.Append("<div class=\"dragitem\" id=\"" + t.Bvin + "\"><table class=\"formtable\" width=\"100%\"><tr>");
            sb.Append("<td><a href=\"" + destinationLink + "\">");
            sb.Append(t.TabTitle);
            sb.Append("</a></td>");
            sb.Append("<td width=\"75\"><a href=\"" + destinationLink + "\"><img src=\"../images/buttons/edit.png\" alt=\"edit\" /></a></td>");
            sb.Append("<td width=\"30\"><a href=\"#\" class=\"trash\" id=\"rem" + t.Bvin + "\"");
            sb.Append("><img src=\"../../images/system/trashcan.png\" alt=\"Delete\" /></a></td>");
            sb.Append("<td width=\"30\"><a href=\"#\" class=\"handle\"><img src=\"../../images/system/draghandle.png\" alt=\"Move\" /></a></td>");
            sb.Append("</tr></table></div>");
        }