    function showXmlFortuneMessage(res) {

        var xmlInstance = res.responseXML;
	Element.update("fortuneMessage", "<p>" + xmlInstance.documentElement.firstChild.nodeValue + "</p>");
    }

    function showSearching(res) {
        new Element.update("ajaxStatus", "Suche Glückskeks...");
    }

    function showLoading(res) {
        new Insertion.Bottom("ajaxStatus", "Glückskeks angefordert...");
    }

    function showLoaded(res) {
        new Insertion.Bottom("ajaxStatus", "Glückskeks auswählen...");
    }

    function showInteractive(res) {
        new Insertion.Bottom("ajaxStatus", "Glückskeks aufbrechen...");
    }

    function showReady(res) {
        new Insertion.Bottom("ajaxStatus", "Glücksnachricht lesen!");
    }

    Ajax.Responders.register({
        onCreate : showSearching,
        onLoading : showLoading,
        onLoaded : showLoaded,
        onInteractive : showInteractive,
        onComplete : showReady
    });
