function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// Validação dos formulários -->
function validaFormAuto(form)
{
  for (i=0;i<form.length;i++)
{
      if (form[i].value == "")
      {
      if (form[i].id.length > 0)
      {
      var nome = form[i].name.substring(1,form[i].name.length);
      var ident = form[i].id;
      alert("O campo [" + ident + "] é necessário."); return false;  
		
      form[i].focus();
       
      }
    }
  }
 return true;  
}

function mostra(id){ // exibe elementos ocultos
     var sm = document.getElementById(id);
	 if(sm.style.display == "block")
	    sm.style.display = 'none';
	 else
	  sm.style.display = 'block';
}





////FUNção para auteração das fontes
var tam = 12;

function mudaFonte( tipo )
{
  if( tipo == 'mais' )
  {
    if( tam < 22 ) tam += 2 ;    			 
  }
  else
  {
    if( tam > 12 ) tam -= 2 ;
  }
  if( document.getElementById( 'mudaFonte' ) )
    mudaFonteRecursiva( tipo , document.getElementById( 'mudaFonte' ) ) ;

  if( document.getElementById( 'mudaFoto' ) )
    mudaFonteRecursiva( tipo , document.getElementById( 'mudaFoto' ) ) ;  
}

function mudaFonteRecursiva( tipo , domElement )
{		
  for( var i = 0 ; i < domElement.childNodes.length ; i++ )
  {
    mudaFonteRecursiva( tipo , domElement.childNodes.item( i )  ) ;
  }
  if( domElement.style )
    domElement.style.fontSize = tam+'px';
}