Hi Pablo,
The issue is that F16_1 is gathered on another page, so is not available to the JavaScript at runtime. You'd need to use SSI Script to recall that value instead. So, create a JavaScript variable and assign it to be equal to [% F16_1 %]. Then use the newly created JavaScript variable in your logic.
Best regards,
Aaron