document.oncontextmenu=new Function("return false"); function preventSelection(b){function c(a,b,c){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener&&a.addEventListener(b,c,!1)}function e(){window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.clear&&document.selection.clear()}function f(a){a=a||window.event;if(!(a.target||a.srcElement).tagName.match(/INPUT|TEXTAREA/i)){var b=a.keyCode||a.which;if(a.ctrlKey&&b=="A".charCodeAt(0))e(),a.preventDefault?a.preventDefault():a.returnValue=!1}}var d=!1;c(b, "mousemove",function(){d&&e()});c(b,"mousedown",function(a){a=a||window.event;d=!(a.target||a.srcElement).tagName.match(/INPUT|TEXTAREA/i)});c(b,"mouseup",function(){d&&e();d=!1});c(b,"keydown",f);c(b,"keyup",f)}preventSelection(document);
