//Disable Context Menu
document.oncontextmenu = function(){return false}
if(document.layers) {
    window.captureEvents(Event.MOUSEDOWN);
    window.onmousedown = function(e){
        if(e.target==document)return false;
    }
}
else {
    document.onmousedown = function(){return false}
}

//Disable text select
function disableselect(e){return false}
function enableselect(){return true}
document.onselectstart=new Function ("return false"); // if IE4+

if(window.sidebar){document.onmousedown=disableselect;document.onclick=enableselect;} // if NS6

