// for use with the Minutes and Agendas pages, by opening these pages in new windows
var newwindow;

function NewWindowOpener(url) {
    newwindow = window.open(url, 'name', 'width=950,resizable=yes,scrollbars=yes,toolbar=no,status=yes');
    if (window.focus) { newwindow.focus() }
}

function isKeyPressedEnter(e) {
    var key;
    if (window.event)
        key = window.event.keyCode;
    else
        key = e.which;

    if (key == 13)
        return true;

    return false;
}

function KeyEventCatcher(e) {
    var key;
    if (window.event)
        key = window.event.keyCode;
    else
        key = e.which;

    if (key == 13) {
        MainTriggerCall();
        return false;
    }
}