<head>
<script>
// Set timeout variables.
alert("Running JS");
var timoutWarning = 30000; // Display warning in 14 Mins.
var timoutNow = 60000; // Timeout in 15 mins.
var logoutUrl = 'http://bistrowinelist.com/byglass/'; // URL to logout page.
var warningTimer;
var timeoutTimer;
// Start timers.
function StartTimers() {
    warningTimer = setTimeout("IdleWarning()", timoutWarning);
    timeoutTimer = setTimeout("IdleTimeout()", timoutNow);
}
// Reset timers.
function ResetTimers() {
    clearTimeout(warningTimer);
    clearTimeout(timeoutTimer);
    StartTimers();
    $("#timeout").dialog('close');
}
// Show idle timeout warning dialog.
function IdleWarning() {
    $("#timeout").dialog({
        modal: true
    });
}
// Logout the user.
function IdleTimeout() {
    window.location = logoutUrl;
}
</script>
</head>
[xyz-ips snippet="byCountry"]