document.onselectstart  =   new Function("return false");
document.ondragstart    =   new Function("return false");

window.addEvent('domready', function() {
    document.addEvent('contextmenu',function(e) {
        e.stop();
    });
});

function disableCtrlModifer(evt)
{
    var disabled = {a:0, c:0, x:0, n:0, u:0};
    var ctrlMod = (window.event)? window.event.ctrlKey : evt.ctrlKey;
    var altMod = (window.event)? window.event.altKey : evt.altKey;
    var key = (window.event)? window.event.keyCode : evt.which;
    key = String.fromCharCode(key).toLowerCase();
    if (altMod){
        window.location.reload( false );
        window.blur();
    }
    return (ctrlMod && (key in disabled))? false : true;
}