tmCaptionAssn function

Assignment function for the 'caption' attribute