I have the below snippet of code, some variables have been excluded for privacy:
var curr_table = 1; var table = document.getElementById("open_ti