Thank you ...(sigh)...I've been looking at it too long now.
Still no success though....I ran debug and it does not see a problem but the function(UDF)simply does not run..?
I have appended(pasted from source)the UDF in question to bottom of my script and saved. Is there another step? Insatallation of some kind that I am missing?