var URLhref = location.pathname.split("/");

if (URLhref[1] != "modulo") {
  document.oncontextmenu = function () { return false; }
  document.onmousemove = function () { return false; }
  document.onselectstart = function () { return false; }
  document.onselect = function () { return false; }
  document.ondragstart = function () { return false; }
/* 
 document.onmouseup = function (e) {
     if (document.layers || (document.getElementById && !document.all)) {
          if (e.which == "2" || e.which == "3") {
               return false;
          }
     }
  }

function IE(e) {
     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {
          alert('Bloqueado ');
          return false;
     }
}
function NS(e) {
     if (document.layers || (document.getElementById && !document.all)) {
          if (e.which == "2" || e.which == "3") {
               alert('Bloqueado ');
               return false;
          }
     }
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
*/

  control = 0;
  document.onkeydown = function (e) {
    e = e || window.event;
    if (e.keyCode == 17) control = 1;
    var tecla = new String (e.keyCode);
    if (control == 1 && (tecla.search(/^65$|^67$|^71$|^83$|^85$|^88$/) == 0)) {
        var timerID = setTimeout(function () {
            clearTimeout(timerID);
            return true;
        }, 500);

        return false;
    }
  }

  document.onkeyup = function (e) {
    e = e || window.event;
    if (e.keyCode == 17) control = 0;
  }
}

