function noRightClick() {
	if (event.button==2) {
		alert('Boton derecho inactivo')
		}
}
document.onmousedown=noRightClick

//BLoquea teclas ctrl, alt, etc
document.onkeydown=function() { 
if (window.event) {
if((window.event.keyCode == 8) ||
((window.event.keyCode >= 113) && (window.event.keyCode <= 123)))
{
//Bloquear Backspace
//Bloquear Teclas Fxx (excepto F1)
window.event.cancelBubble = true;
window.event.keyCode = 8;
window.event.returnValue = false;
return false;
}
}

if(event.altLeft) {
if((window.event.keyCode == 37) || (window.event.keyCode == 39)) {
//Bloquear Alt + Cursor Izq/Der.
return false;
}
}

if(event.ctrlKey) {
//Bloquear Ctrl
return false;
}

if(event.keyCode>65 || event.keyCode<90 ){
	return false;
}


//alert(window.event.keyCode);
return true;

}

//Deshabilita seleccion
function disableselect(e){ 
	return false 
} 
function reEnable(){ 
	return true 
} 
document.onselectstart=new Function ("return false") 
if (window.sidebar){ 
	document.onmousedown=disableselect 
	document.onclick=reEnable 
} 

//Bloquea todo el teclado
function shant(){
	alert('Esta pagina no permite usar el teclado')
}
document.onkeydown=shant;


