function auto_focus() {} function logout(option){ var msg = "Are you sure your want to logout?"; var warning = "\n\nWARNING!. All of your not confirmed reservations will be lost!"; warning += "\nIf you want to keep them in option, just hit the cancel button and close your internet browser"; if (option) msg+= warning; if (confirm(msg)) { location.href='../home/logout.php'; } }