// Deshabilita botón derecho ratón

isNN = document.layers ? 1 : 0; 

function noContext(){return false;}

function noClick(e){
    if(isNN){
        if(e.which > 1) {return false;}
    } else { 
        if(event.button > 1){return false;}
    }
}

if(isNN){ 
    document.captureEvents(Event.MOUSEDOWN);
}

document.oncontextmenu = noContext;
document.onmousedown   = noClick;
document.onmouseup     = noClick;

//=====================================


// Deshabilita la selección de texto

function disabletext(e){
return false
}

function reEnable(){
return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}

//=====================================
