Increment item value on insert beside other item

http://manage.dimagi.com/default.asp?137934