// JavaScript Document
// 对页面的复制操作进行禁止
// 防君子，防不了小人
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   /* hotkey即为热键的键值,是ASII码,这里99代表c键 */
if(document.layers){
	document.captureEvents(Event.KEYDOWN);
}
function gogo(e){
	if (document.layers){
		if (e.which==hotkey&&travel){
			alert("^_*操作错误.或许是您按错了按键!"); 
		}
	}else if (document.all){
		if (event.keyCode==hotkey&&travel){
			alert("^_*操作错误.或许是您按错了按键!"); 
		}
	}
}
document.onkeydown=gogo;
//document.oncontextmenu="return false";
//document.ondragstart="return false";
//document.onselectstart ="return false";
//document.onselect="document.selection.empty()";
//document.oncopy="document.selection.empty()";
//document.onbeforecopy="return false";
//document.onmouseup="document.selection.empty()";
//document.oncopy="return false;";
//document.oncut="return false;" ;