﻿function redirectUser(url, include) {
    if (include = "IFRAME") {
        var iframe = document.getElementById("irdr");
        iframe.width = getW();
        iframe.height = getH();        
        iframe.src = url;
    }
    else
        window.location = url;
}

function getW() {
    var w;
    if (document.innerWidth) {
        w = document.innerWidth;
    } else if (document.documentElement.clientWidth) {
        w = document.documentElement.clientWidth;
    } else if (document.body) { w = document.body.clientWidth; }
    return w;
}
function getH() {
    var h;
    if (document.innerHeight) {
        h = document.innerHeight;
    } else if (document.documentElement.clientHeight) {
        h = document.documentElement.clientHeight;
    } else if (document.body) { h = document.body.clientHeight; }
    return h;
}
