function getWindowHeight() {
    var windowHeight = 0;
    if (typeof (window.innerHeight) == 'number') {
        windowHeight = window.innerHeight;
    }
    else {
        if (document.documentElement && document.documentElement.clientHeight) {
            windowHeight = document.documentElement.clientHeight;
        }
        else {
            if (document.body && document.body.clientHeight) {
                windowHeight = document.body.clientHeight;
            }
        }
    }
    return windowHeight;
}

function setFooter() {
    if (document.getElementById) {
        var windowHeight = getWindowHeight();
        if (windowHeight > 0) {
            var contentHeight = document.getElementById('outerWrapper').offsetHeight;
            var footerElement = document.getElementById('JB_Footer');
            var footerHeight = footerElement.offsetHeight;
            if (windowHeight - (contentHeight + footerHeight) >= 0) {
                footerElement.style.position = 'relative';
                footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
            }
            else {
                footerElement.style.position = 'static';
                footerElement.style.bottom='0px';
            }
        }
    }
}

function deleteIFrame() {

    //while ((el = document.getElementsByTagName('iframe')).length) {el[0].parentNode.removeChild(el[0]);}   

    var coll_iFrames = document.getElementsByTagName('iframe');
    var qty_iFrames = coll_iFrames.length;
    var i = 0;
    var strSrc = ' ';

    for (i = 0; i < qty_iFrames; i++) {
        strSrc = coll_iFrames[i].src
        //alert(strSrc.indexOf('alphagodaddy.com') + '  ' + strSrc);
        if (strSrc.indexOf('alphagodaddy.com') > -1) {
            //alert(strSrc.indexOf('alphagodaddy.com') + '  ' + strSrc);
            coll_iFrames[i].parentNode.removeChild(coll_iFrames[i])
            return;
        };
    }
}