﻿function setFrameURL(frame,sitecode) {
    var d = document.getElementById(frame);
    if (d != null) {
        var ref = new String(window.location).toLowerCase();
        d.src = 'http://www.bridgewayinteractive.com/webbrochure/inline.aspx?qqq=' + sitecode + '&Ref=' + ref;
        d.width = 700;
        d.height = 615;
    }
}
function openPopUp(sitecode) {
    var ref = new String(window.location).toLowerCase();
    var theURL = 'http://www.bridgewayinteractive.com/webbrochure/content.aspx?qqq=' + sitecode + '&Ref=' + ref;
    var height = 616;
    var width = 695;
    var window_top = (screen.height - height) / 2;
    var window_left = (screen.width - width) / 2;
    var newfeatures = 'scrollbars=no,resizable=no,toolbar=no,location=no,status=no,menubar=no, width=' + width + ',height=' + height + ',top=' + window_top + ',left=' + window_left;
    var newWindow = window.open(theURL, '_blank', newfeatures);
    newWindow.focus();
}
function clickIE4() {
    if (event.button == 2) {
        alert("Sorry - not allowed!"); return false;
    }
}
function clickNS4(e) {
    if (document.layers || document.getElementById && !document.all) {
        if (e.which == 2 || e.which == 3) {
            alert("Sorry - not allowed!"); return false;
        }
    }
}
function blockContextMenu() {

    if (document.layers) {
        document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clickNS4;
    }
    else if (document.all && !document.getElementById) {
        document.onmousedown = clickIE4;
    }
    document.oncontextmenu = new Function("alert('Sorry - not allowed!');return false");
}

