document.getElementById("TimeoutForm").onsubmit = function() { var queryParams = WR.URL.ParseParams( WR.URL.getQuery( location.href ) ); delete queryParams['LogoutRequest']; delete queryParams['SessionExpired']; location.href = '/saml?RelayState=' + encodeURIComponent(location.pathname + '?' + WR.URL.paramsToString( queryParams ) + location.hash); return false; }; ?>