    function ShowSubscribeBox(MailinglistID) {
        window.addEvent('domready', function() {
            LoadNewsletterSubscribeBox(MailinglistID);
        });
    }
    
    function SubscribeNewsletter(MailinglistID) {
        var reqSubscribe = new Request.HTML({url:'/Test.asp?MailinglistID='+MailinglistID, 
		    onSuccess: function(html) {
			    $('LayerSubscribeBox').set('text', '');
			    $('LayerSubscribeBox').adopt(html);
		    },
		    onFailure: function() {
			    $('LayerSubscribeBox').set('html', '<p>Der opstod en fejl i SubscribeNewsletter.</p>');
		    }
        }).post($('SubscribeNewsletterForm'));	
	    reqSubscribe.send();
    }

    function LoadNewsletterSubscribeBox(MailinglistID) {
        // We can use one Request object many times.
        var makeRequest = function() {
            var req = new Request.HTML({url:'/Test.asp?MailinglistID='+MailinglistID, 
	            onSuccess: function(html) {
		            // Clear the text currently inside the results div.
		            $('LayerSubscribeBox').set('text', '');
		            // Inject the new DOM elements into the results div.
		            $('LayerSubscribeBox').adopt(html);
                    fadeIn.start({ opacity : 1 });     
                    
	                //el.fade(1);
    	            
	            },
	            //Our request will most likely succeed, but just in case, we'll add an
	            //onFailure method which will let the user know what happened.
	            onFailure: function() {
		            $('LayerSubscribeBox').set('html', '<p>Der opstod en fejl i LoadNewsletterSubscribeBox.</p>');
	            }
            });
            req.send();
        };
        
        var fadeIn = new Fx.Morph($('LayerSubscribeBox'),{
                duration: 1000
                });

        var fadeOut = new Fx.Morph($('LayerSubscribeBox'),{
                duration: 1000,
                onComplete: function () {
                        makeRequest()
                        }
                });

        fadeOut.start({
                opacity : 0
                });         
        
        //var fadeIn = new Fx.Tween($('LayerSubscribeBox'),{property:'opacity', duration:1000});
        //var fadeOut = new Fx.Tween($('LayerSubscribeBox'),{property:'opacity', duration:1000, onComplete:makeRequest });
        //fadeOut.start(1,0);
    }