Nice job. Can you post these two functions as UDFs in the UDF Forum?
_________________________
There are two types of vessels, submarines and targets.