function ValidateMinimumQuantity()
{
    try
    {
        var cartTable = $("#carttable");
        if (cartTable != null)
        {
            var cartRows = cartTable.children().children();
            if (cartRows != null && cartRows.length > 0)
            {
                // Validated that we're on the checkout form so get the quantity fields via their class reference
                var quantityFields = $("td.listtexthl");
                if (quantityFields != null && quantityFields.length > 0)
                {
                    for (var i = 0; i < quantityFields.length; i++)
                    {
                        var quantity = parseFloat(quantityFields[i].innerHTML);
                        if (!isNaN(quantity) && quantity < 6)
                        {
                            $("#submitter").css('display', 'none');
                            alert('Mixed Bag requires Wholesale customers order at least six (6) of each item purchased.  At least one item in your order is for less than six of that item.  Please ensure every item in the order has a quantity of at least six.');
                        }
                    }
                }
            }
        }
    }
    catch (e)
    {

    }
}
