﻿function DownloadAgreement() {
    $.ajax({
        url: "servicios/lol-channel-club",
        data: "action=DownloadAgreement",
        complete: function(xhr, stat) {
            alert("daaa");
            var typ = xhr.contentType;
            var res = xhr.responseText;

            alert("Type: " + typ);
        },
        error: function(e) {
            alert(e);
        }
    });
}

function AcceptAgreement() {
    $("#loading").show();
    $("#btnAccept").hide();
    $.post("servicios/lol-channel-club", { action: 'Accept' }, function(data) {
        window.location.href = "lol-channel-club";
    });
}

function ToggleElement(elementId) {
    var divElem = document.getElementById(elementId);
    $(divElem).slideToggle("fast");
}




