+function set_tpl_flag($reconcile_id)
+{
+ global $Ajax;
+
+ if (check_value("rec_".$reconcile_id))
+ return;
+
+ if (get_post('bank_date')=='') // new reconciliation
+ $Ajax->activate('bank_date');
+
+ $_POST['bank_date'] = date2sql(get_post('reconcile_date'));
+ $reconcile_value = ("'".$_POST['bank_date'] ."'");
+
+ update_reconciled_values($reconcile_id, $reconcile_value, $_POST['reconcile_date'],
+ input_num('end_balance'), $_POST['bank_account']);
+
+ $Ajax->activate('reconciled');
+ $Ajax->activate('difference');
+}
+