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; // for IE5+ 
document.onmousedown = norightclick; // for all others 

function click() {
//alert('禁止你的左键复制！');
return false;
}

function click1() {
if (event.button==2) {
//alert('禁止右键点击~！');
return false;
}}

function CtrlKeyDown() {
if (event.ctrlKey) {
//alert('不当的拷贝将损害您的系统！');
return false;
}}
document.onkeydown=CtrlKeyDown;
document.onselectstart=click;
document.onmousedown=click1;
document.oncontextmenu=click;


function clear(){ //看不到源代码
Source=document.body.firstChild.data; 
document.open(); 
document.close(); 
document.title="您无权查看源代码"; 
document.body.innerHTML=Source; 
}

function DM(e){
	if(!ns){if(event.button>1)window.external.addFavorite('http://www.bhcc.cn','美妆中国网::美容美发化妆品行业企业网址大全')
	}else{
		if(e.which>1)return false} 
}
//ns=navigator.appName=="Netscape";
//if(ns)document.captureEvents(Event.MOUSEMOVE |Event.MOUSEDOWN);
//document.onmousemove=DM;
//document.onmousedown=DM; 