added new function confirmGatePass (globs.js)