#376: ajax_data.js, define 'flag_ajax' based on form field