See the UDF post right above yours... it was an attempt to fix that problem. Is it still not working right?