def getCheck(secscan, secscanLength):
    """
    Sets the element, 'Check', to a variable 'check',
    loops through the 'check'-list ;) , prints the
    section header for each test with printCheckAttributes()
    and calls getAdvice().
    
    This element is a sibling to the 'IPList' element
    and contains all of the elements we need to access
    for the report.
    """
    checkx = 3 # loop iterator
    check = secscan.childNodes[checkx]
    checkLength = len(check.childNodes)
    checknumber = 1

    while checkx < (secscanLength - 2):
        printCheckAttributes(check, checknumber)
        getAdvice(check)
        if checkLength == 5:
            getDetail(check)
            
        checkx += 2
        checknumber += 1
        #print checkx
        check = secscan.childNodes[checkx]
        checkLength = len(check.childNodes)

    Sets the element, 'Check', to a variable 'check',
    loops through the 'check'-list ;) , prints the
    section header for each test with printCheckAttributes()
    and calls getAdvice().
    
    This element is a sibling to the 'IPList' element
    and contains all of the elements we need to access
    for the report.
    
recipes/Python/305302_mbsa2txt/recipe-305302.py