remove usage of 'id' as a function argument

fixes http://manage.dimagi.com/default.asp?101694#577042