// Confirm Logout
// Created by CrAzY_J
// Do not redistribute this code without the creator's permission
var message = 'Are you sure you want to logout?';
var Menu = document.body.getElementsByTagName('td')[5].firstChild;
var Logout = Menu.getElementsByTagName('a')[ Menu.getElementsByTagName('a').length-1 ];
if( pb_username != "Guest" )
{
   Logout.href = 'javascript:noob();';
}

function noob()
{
   if( confirm(message) )
      this.location.href = '/index.cgi?action=logout';
}
