/*    function msKeyPress() {
        if (window.event.keyCode == 26) {
        }
    }
    */
    if( document.captureEvents ) {
    //non IE
    if( Event.KEYUP ) {
        //NS 4, NS 6+, Mozilla 0.9+
        document.captureEvents( Event.KEYUP );
    }
}

function alertkey(e) {
        //Internet Explorer
        if(window.event)
               if (window.event.keyCode == 26) {
                        if (confirm("Wil je inloggen?"))
                          document.location = 'index.php?quicklink=user_login';
                     }

if(!window.event)
  if ((e && e.which) || e.keyCode==26) {
        if(e.keyCode==26 || ( e.which==122 && e.ctrlKey))
                                if (confirm("Wil je inloggen?"))
                          document.location = 'index.php?quicklink=user_login';


    }

}
/* this next line tells the browser to detect a keyup
event over the whole document and when it detects it,
it should run the event handler function 'alertkey' */
      //  document.onkeyup = alertkey;
            document.onkeypress = alertkey;