function body_load()
{
	window.onbeforeprint=function(){window.document.body.style.display="none"}		//禁止打印
	document.onpaste=function(){window.event.returnValue=false};					//禁止粘贴
	document.oncopy=function(){document.selection.empty()};							//禁止复制
	document.oncut=function(){window.event.returnValue=false};						//禁止剪切
	//禁止点击非连接
	//document.ondblclick	//双击
	document.onclick=function()
	{
		event.returnValue=false;
		var tagname=event.srcElement.tagName.toLowerCase();
		if(tagname=="a"||tagname=="img"||tagname=="area"||tagname=="input")			//允许点击对象
		{
			event.returnValue=true;
		}
	} ;
	if (top.location != self.location){ top.location=self.location;}				//防止被frame
	window.ClearEvent=function()
	{
		event.cancelBubble=false;
		var tagname=event.srcElement.tagName.toLowerCase();
		return (tagname=="textarea" || tagname=="input" || tagname=="select");		//允许表单使用右键菜单/选择/鼠标拖动
	};
	window.ClearKey=function()	//78=n 禁止新建本页 8退格删除键 116=F5 82=r
	{
		event.cancelBubble=false;
		var iKeyCode=event.keyCode;
		var tagname=event.srcElement.tagName.toLowerCase();
		if (tagname!="textarea" && tagname!="input")
		{
			return !((iKeyCode==78 && event.ctrlKey)||(iKeyCode==8)||(iKeyCode==82 && event.ctrlKey));
		}
	};
	if (window.attachEvent)
	{
		document.attachEvent("oncontextmenu",window.ClearEvent);	//禁止右键
		document.attachEvent("onselectstart",window.ClearEvent);	//禁止选择
		document.attachEvent("ondragstart",window.ClearEvent);		//鼠标拖动
		document.attachEvent("onkeydown",window.ClearKey);			//禁止点击非连接
	}
	else
	{
		document.addEventListener("contextmenu",window.ClearEvent,false);
		document.addEventListener("selectstart",window.ClearEvent,false);
		document.addEventListener("dragstart",window.ClearEvent,false);
		document.addEventListener("keydown",window.ClearKey,false);
	}
}
if (window.attachEvent)
{
	window.attachEvent("onstop",body_load);
	window.attachEvent("onload",body_load);
}
else
{
	window.addEventListener("stop",body_load,false);
	window.addEventListener("load",body_load,false);
}