def hrefConcept(prefix, name):
    qn = qname(prefixedNamespaces[prefix], name)
    if (qn in modelXbrl.qnameConcepts):
        return modelXbrl.qnameConcepts[qn]
    elif (name in modelXbrl.nameConcepts):
        return modelXbrl.nameConcepts[name][0]
    if (prefix not in prefixedNamespaces):
        modelXbrl.error('loadFromExcel:undefinedRelationshipElementPrefix', 'Prefix not defined: %(prefix)s', modelXbrl=modelXbrl, prefix=prefix)
        return None
    modelXbrl.error('loadFromExcel:undefinedRelationshipElement', 'QName not defined: %(prefix)s:%(localName)s', modelXbrl=modelXbrl, prefix=prefix, localName=name)
    return None
def hrefConcept(prefix, name):
    qn = qname(prefixedNamespaces[prefix], name)
    if (qn in modelXbrl.qnameConcepts):
        return modelXbrl.qnameConcepts[qn]
    elif (name in modelXbrl.nameConcepts):
        return modelXbrl.nameConcepts[name][0]
    if (prefix not in prefixedNamespaces):
        modelXbrl.error('loadFromExcel:undefinedRelationshipElementPrefix', 'Prefix not defined: %(prefix)s', modelXbrl=modelXbrl, prefix=prefix)
        return None
    modelXbrl.error('loadFromExcel:undefinedRelationshipElement', 'QName not defined: %(prefix)s:%(localName)s', modelXbrl=modelXbrl, prefix=prefix, localName=name)
    return None