﻿function openCCExample(e) {
    var ex = document.getElementById('cc_example');
    var iframe = document.getElementById('popup_iframe');
    if (ex != null) {
        ex.style.display = "block";
        isCCExampleOpened = 1;
    }
    if (iframe != null) {
        iframe.style.display = "block";
    }
}

var isCCExampleOpened = false;

function hideCCExample() {
    if (isCCExampleOpened) {
        if (isCCExampleOpened == 1)
            isCCExampleOpened++;
        else {
            var ex = document.getElementById('cc_example');
            if (ex != null) {
                ex.style.display = "none";
                isCCExampleOpened = 0;
            }
            var iframe = document.getElementById('popup_iframe');
            if (iframe != null) {
                iframe.style.display = "none";
            }
        }
    }
}