function noRightClick(e) {

if (document.layers || document.getElementById && !document.all) {

if (e.which == 2 || e.which == 3) {

document.captureEvents(Event.MOUSEDOWN);

return false;

}

} else if (document.all && !document.getElementById) {

if (event.button == 2)

return false;

}

}

function noContextMenu () {

return false;

}

document.onmousedown = noRightClick;

document.oncontextmenu = noContextMenu;

 

 

 

function disableselect(e){ 

return false 

} 

function reEnable(){ 

return true 

} 

document.onselectstart=new Function ("return false") 

if (window.sidebar){ 

document.onmousedown=disableselect 

document.onclick=reEnable 

}
