import re


def GetBackgroundColorTypeTagForTableValue(Color, ColorType):
    """Setup color type tage for setting background of a table value."""

    ColorTypeTag = "class" if re.match("^colorclass", ColorType, re.I) else "bgcolor"
    
    return ColorTypeTag