The tbod variable does not get set when loading a save. Also looks like you forgot to check for tmax being true.
Scrolling worked properly up until the very last choice (Had to lower the browser zoom to get to the link to the last page.)