function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function right(e) {
  if (navigator.appName == 'Netscape' && 
    (e.which == 3 || e.which == 2))
  return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && 
    (event.button == 2 || event.button == 3)) {
      //alert("Maiores informações, faça alguma coisa.");
      return false;
    }
  return true;
}

/*function numeros(e) {
  alert(e.KeyCode);
  var tecla = event.KeyCode;
  if (tecla >= 48 && tecla <= 57) {
    return true;
  } else {
    return false;
  }
}*/

function numeros(a) {
		 var Key = a.keyCode || a.which;
		 if ((Key >= "48" && Key <= "57") || (Key == "0") || (Key == "8")) {
		 return true;
		 }
		 else{
			 return false;
		 //alert('Não foi um Enter');
		 }
	}

/*
function numeros(a) {
  var Key = a.KeyCode || a.which;
  if ((Key >= "48" && Key <= "57") || (Key == "0") || (Key == "8")) {
    return true;
  }
  else{
       return false;
  //alert('Não foi um Enter');
  }
}
*/
function contato() {
  if (document.formcontato.nome.value=="") { alert("Digite o seu nome."); document.formcontato.nome.focus(); return false }
  	mail = document.formcontato.email.value;
    var er = new RegExp(/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]{2,}\.[A-Za-z0-9]{2,}(\.[A-Za-z0-9])?/);
    if(typeof(mail) == "string"){
		if(!er.test(mail))
		{
		alert("O e-mail não está correto");
		document.formcontato.email.focus();
		return false;
		}
	}
  if (document.formcontato.assunto.value=="") { alert("Digite o assunto."); document.formcontato.assunto.focus(); return false }
}

document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
   window.onmousedown=right;

