BUG 10733 Cuando se navega en la opciÃ³ome-->documents se pierde la sesion SOLVED

- Wrong validation in ajax request when clicking in another link
- Fix the validation to discrimine a session error and cancelation error