function valida() {
	  if (vazio(document.contato.nome.value))
	     { alert("Informe seu NOME.");
	  document.contato.nome.focus();
	  return false;}
	  if (vazio(document.contato.email.value))
	     { alert("Informe seu endereço de E-MAIL.");
	  document.contato.email.focus();
	  return false;}	
	  if (!isEmail(document.contato.email.value))
	     { alert("Endereço de E-MAIL não parece válido.");
	  document.contato.email.focus();
	  return false;}
	  if (vazio(document.contato.texto_mensagem.value))
	     { alert("Informe sua MENSAGEM.");
	  document.contato.texto_mensagem.focus();
	  return false;}
	}
	
function validabusca() {
	  if (vazio(document.frmSiteSearch.search.value))
	     { alert("Informe ao menos uma palavra.");
	  document.frmSiteSearch.search.focus();
	  return false;}
	}

	function isEmail(str) {
	   return ((str != "") && (str.indexOf("@") != -1) && (str.indexOf(".") != -1));
	}

	function vazio(str) {
	   wd = str.length;
	   cont = 0;
	   for (x=0; x<wd; x++) {
	      if (str.substring(x,x+1) == " ") { ++ cont; }
	   }
	   return ((cont == wd) || (str == ""));
	}
	
	
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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 MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function P7_Snap() { //v2.62 by PVII
  var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,args=P7_Snap.arguments;a=parseInt(a);
  for (k=0; k<(args.length-3); k+=4)
   if ((g=MM_findObj(args[k]))!=null) {
    el=eval(MM_findObj(args[k+1]));
    a=parseInt(args[k+2]);b=parseInt(args[k+3]);
    x=0;y=0;ox=0;oy=0;p="";tx=1;da="document.all['"+args[k]+"']";
    if(document.getElementById) {
     d="document.getElementsByName('"+args[k]+"')[0]";
     if(!eval(d)) {d="document.getElementById('"+args[k]+"')";if(!eval(d)) {d=da;}}
    }else if(document.all) {d=da;} 
    if (document.all || document.getElementById) {
     while (tx==1) {p+=".offsetParent";
      if(eval(d+p)) {x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
      }else{tx=0;}}
     ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);var tw=x+ox+y+oy;
     if(tw==0 || (navigator.appVersion.indexOf("MSIE 4")>-1 && navigator.appVersion.indexOf("Mac")>-1)) {
      ox=0;oy=0