var message="Milenia Agroci&ecirc;ncias S/A.\nEsta p&aacute;gina, suas imagens e textos foram protegidos.\nTodos os Direitos Reservados.";

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)
			alert1(message);
			return false; 
	}else if (event.button == 2 || event.button == 3) {
		alert1(message);
		event.cancelBubble = true 
		event.returnValue = false; 
		return false; 
	} 
} 

if (document.layers) { 
	document.captureEvents(Event.MOUSEDOWN); 
} 
document.oncontextmenu = nocontextmenu; 
document.onmousedown = norightclick; 
document.onmouseup = norightclick; 

function disableselect(e){
	return false
}
function reEnable(){
	return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
	document.onmousedown=disableselect
	document.onclick=reEnable
}
function stopError(){
         return true;
}

window.onerror=stopError;

function sobretext(msg){
	window.status=msg
}

function foratext(msg){
	window.status=msg
}

function alert1(x) {
// alert(acentos(x))
   alert(x)
}

function confirm1(x) { confirm(x) }
//function confirm1(x) { confirm(acentos(x)) }

function acentos(x) {
	x = x.replace(/&ecirc;/g,"\xEA");
	x = x.replace(/&aacute;/g,"\xE1");

	return x;
}