		function blockError(){return true;}
		window.onerror = blockError;

		function disableselect(e) {
			return false;
		}

		function reEnable() {
			return true;
		}

		document.onselectstart=new Function ("return false");
		if (window.sidebar) {
			document.onmousedown=disableselect;
			document.onclick=reEnable;
		}

		var mensagem="Copia nao autorizada!";//protege o botao direito do mouse
		function click(mouse) {
			if (document.all) {
				if (event.button==2||event.button==3) {
					alert(mensagem);
					return false;
				}
			}
			if (document.layers) {
				if (mouse.which == 3) {
					alert(mensagem);
					return false;
				}
			}
		}
		if (document.layers) {
			document.captureEvents(Event.MouseDown);//protege a tecla ALT
			function keypressed(evt) {
				var evt = (evt) ? evt : ((event) ? event : null);
				if((evt.keyCode == 18) || (evt.keyCode == 115)) {
					alert("Utilize somente os botoes dentro da pagina!");
				}
			}
		}
		
		document.onmousedown=click;
		document.onkeydown=keypressed;
