logoutBlock.onSuccess();Event.observe(window, "load", function(){ logoutBlock.onSuccess(); });