Totally mystified. I created a dummy ASP page with that same function name and passed it the same parameters you are using...no problem!
My head hurts.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.