Not that I know of a function. But, you could code that in. If you want some code let me know.
Forum Rules