You should be able to get it done by modifying the UDF a bit, I wrote this for a gui interface (kixforms)...
_________________________
~Mwah