def get_icon_from_type(type):
    """
    A helper function to obtain icon from type name of the object.
    """
    t = """<img src = "/style/img/%s_icon.png" width = "16" height = "16" alt = "%s" />"""
    return t % (type.lower(), type.lower())