function confirmLogout() {
   if (confirm(window.translates['header_logoutMessage'])) {
     window.location = '/logout/';
   }
} 