﻿Type.registerNamespace("Site");

Site.KeyDownHandler = function (e) {
    if (e.shiftKey && e.ctrlKey && (e.keyCode===69)) {
        e.preventDefault();
        window.location = '/Login.aspx?ReturnUrl=' + encodeURIComponent(window.location.pathname + window.location.search);
    }
};

Site.InitKeyDownHandler = function Site$InitKeyDownHandler(sender, e) {
    if (!e.get_isPartialLoad())
    {
        $addHandler(document.documentElement,'keydown', Site.KeyDownHandler);
    }
}

Sys.Application.add_load(Site.InitKeyDownHandler);

// Notify ScriptManager that this is the end of the script.
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();