﻿Page = (function () {

    return {

        Subscribe: function () {

            Cetrine.Tools.ShowLayerLoader();

            var WS = new wsServices();
            wsServices.set_path('/WS/wsServices.asmx');

            WS.Subscribe(
                jQuery('#txtNewsLetter').val(),
                function (response) {

                    Cetrine.Tools.HideLayerLoader();

                    jQuery('#DivSubscriptionForm').hide();
                    jQuery('#DivSubscriptionResponse').html(response);

                }, Cetrine.Tools.CatchException
             );

        }

    };

})();

