
function window.onbeforeunload() 
{
    if (document.body.clientWidth - event.clientX < 170 && event.clientY < 0 || event.altKey){ 
       UserLogout.Logout();
    } 
}