﻿function clear(){
}

function stop(){ return false; } 
document.oncontextmenu=stop; 
if (window.Event)  
document.captureEvents(Event.MOUSEUP);  
function nocontextmenu(){  
event.cancelBubble = true  
event.returnValue = false;  
return false;  
}   
function norightclick(e){  
if (window.Event){  
if (e.which == 2 || e.which == 3)  
return false;  
}  
else  
if (event.button == 2 || event.button == 3){  
event.cancelBubble = true  
event.returnValue = false;  
return false;  
}  
}   
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.oncontextmenu=new Function("event.returnValue=false;");
document.onselectstart=new Function("event.returnValue=false;");
var omitformtags=["input", "textarea", "select"] 
omitformtags=omitformtags.join("|") 
function disableselect(e){ 
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) 
return false 
} 
function reEnable(){ 
return true 
} 
if (typeof document.onselectstart!="undefined") 
document.onselectstart=new Function ("return false") 
else{ 
document.onmousedown=disableselect 
document.onmouseup=reEnable 
} 

function click(e) {
 if (document.all) {
  if (event.button==1||event.button==2||event.button==3) {
   oncontextmenu='return false';
  }
 }
 if (document.layers) {
  if (e.which == 3) {
   oncontextmenu='return false';
  }
 }
}
if (document.layers) {
 document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")

var travel=true
var hotkey=17
if (document.layers)
document.captureEvents(Event.KEYDOWN)
function gogo(e)
{ if (document.layers) {
if (e.which==hotkey&&travel){ } }
else if (document.all){
if (event.keyCode==hotkey&&travel){ }}
}

document.onkeydown=gogo;
