Function getExt(name)
getExt = right(name, 3)
End Function
Function isf(fileName, fType)
ext = getExt(fileName)
isf = False
typeList = split(fType, ",")
For ii = LBound(typeList) To UBound(typeList)
If UCase(ext) = UCase(typeList(ii)) Then
isf = True
Exit For
End If
Next
End Function