Modified the calculate() function from specific_fns.jw_mapping to the new design.
Authored by: semor 2008-04-03
Parent: [r5249]
Child: [r5251]