I found another little problem with the UDF. Replace
Code:

case 1=$type $quotauser=$quota.used


with
Code:

case 1=$type $quotauser=$quota.quotaused



-Ben
http://www.rgcweb.org/kix