Can you show an example page that uses JS
to affect PDF in any way???
Okay...then my basic answer is correct:
REFUND = ( Deposit > GT ? GT - Deposit : "" );
But presumably you must use Adobe's DOM to specify those fields in the document more clearly.
And that I know *nothing* about.