function blockError(){return true;}
window.onerror = blockError;

function VS(tr, mode){if (mode == 0) {tr.className = "over_boxpal";}else {tr.className = "boxpal";}}
function sob(obj){obj.style.backgroundColor="#CCCCCC";obj.style.cursor="pointer"; obj.style.color="#FFFFFF";}
function out(obj){obj.style.backgroundColor="#666666";obj.style.cursor="pointer"; obj.style.color="#555555";}
function xsob(obj){obj.style.backgroundColor="#555555";obj.style.cursor="pointer";}
function xout(obj){obj.style.backgroundColor="#2e2e2e";obj.style.cursor="pointer";}
function go(url){location.href=url;}

function escolhe(){
if (document.busca_frm.tipo[2].selected==true){document.getElementById("temasbox").style.display="block";}
else{document.getElementById("temasbox").style.display="none";
}
}

function datago(imp,obj){
if (imp[0].selected==true){alert("Escolha o Ano");}
else{location.href="agenda.asp?ano=" + obj;
}
}

function checabusca(){
if (document.busca_frm.tipo[0].selected==true){
alert("Selecione a categoria da busca a ser realizada");
return false;
}
}

function verifica(form){
	if (document.contato_frm.nome.value==""){
	alert("Digite o seu NOME");
	document.contato_frm.nome.focus();
	return false;
	}

	if (document.contato_frm.email.value==""){
	alert("Digite o seu E-MAIL");
	document.contato_frm.email.focus();
	return false;
	}

	if (document.contato_frm.mensagem.value==""){
	alert("Digite a sua MENSAGEM");
	document.contato_frm.mensagem.focus();
	return false;
	}

var field = document.contato_frm.email;
var str = field.value;
if (window.RegExp) {
var reg1str = "(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)";
var reg2str = "^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$";
var reg1 = new RegExp(reg1str);
var reg2 = new RegExp(reg2str);
if (!reg1.test(str) && reg2.test(str)) {
return true;
}
alert ("Por favor, digite o  seu E-MAIL corretamente.");
field.focus();
field.select();
return false;
} else {
if(str.indexOf("@") >= 0)
return true;
field.focus();
field.select();
return false;
}
}

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")