<!-- Início Função Mostra -->
function Mostra(id1, id2) {
  if (id1 != '') expMenu(id1);
  if (id2 != '') expMenu(id2);
}
function expMenu(id) {
  var itm = null;
  if (document.getElementById) {
		itm = document.getElementById(id);
  } else if (document.all){
		itm = document.all[id];
  } else if (document.layers){
		itm = document.layers[id];
  }
	
  if (!itm) {
  }
  else if (itm.style) {
		if (itm.style.display == "none") { itm.style.display = ""; }
	else { itm.style.display = "none"; }
    }
  else { itm.visibility = "show"; }
}
<!-- Final Função Mostra -->

<!-- Início Janela Ver Foto Zoom -->
function ampliar_imagem(URL, width, height) {
	var larguratela = screen.width;
	var alturatela = screen.height;
	var largurajanela = ''+width+'';
	var alturajanela = ''+height+'';
	
	var iniciolargura = (larguratela - largurajanela) / 2;
	var inicioaltura = (alturatela-alturajanela) / 2;

   window.open(URL, 'imagem', 'width='+largurajanela+', height='+alturajanela+', top='+inicioaltura+', left='+iniciolargura+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
<!-- Final Janela Ver Foto Zoom -->

<!-- Início Validação Busca Informativo -->
function valida_busca_informativo(){
        if(document.getElementById('textfield').value.length < 2 || document.getElementById('textfield').value == "" ){
        alert("Digite uma palavra no campo de busca com pelo menos 2 caracteres.");
		document.getElementById('textfield').focus();
        return false;
        }
}
<!-- Final Validação Busca Informativo -->

<!-- Início Validação Formulário Newsletter -->
function valida_form_newslleter(){
	var nome = document.form_newslleter.nome.value;
	var email = document.form_newslleter.email.value;
	if(nome.length < 1){
		alert('Você deve preencher o campo Nome.');
		form_newslleter.nome.focus();
	return false;
	} else if(email.indexOf('@') < 1){
		alert('Você deve preencher o campo Email com um endereço válido.');
		form_newslleter.email.focus();
	return false;
	} else
		return true;
}
<!-- Final Validação Formulário Newsletter -->

<!-- Início Carrega Flash -->
function carregaFlash(caminho,largura,altura)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+largura+'" height="'+altura+'">');
document.write('<param name="movie" value="'+caminho+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+caminho+'" quality="high" wmode="transparent" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'"></embed>');
document.write('</object>');
}
<!-- Final Carrega Flash -->

<!-- Início Função que aumenta e diminui o tamanho da fonte na área de notícias -->
// FUNÇÃO QUE AUMENTA E DIMINUI O TAMANHO DA FONTE NA ÁREA DE NOTICIAS
var intContaTam = 0;
	var vetFonte = new Array ();
	vetFonte [0] = "65"; <!-- 65 - equivale a fonte 10 no td, body-->
	vetFonte [1] = "100";
	vetFonte [2] = "110";
	vetFonte [3] = "120";
	vetFonte [4] = "130";
	
	function areaTexto (strAD) {
		
		if (strAD=="A") {
			intContaTam++;
			if (intContaTam>=vetFonte.length)
				intContaTam = vetFonte.length-1;
			document.all.areaTexto.style.fontSize = vetFonte[intContaTam]+"%";
		} else {
			intContaTam--;
			if (intContaTam<0)
				intContaTam=0;
			document.all.areaTexto.style.fontSize = vetFonte[intContaTam]+"%";
		}
	}

var tam=10;
function mudaFonte(tipo){
if (tipo=="mais"){		
	tam+=5;
}else{
	tam-=5;
} 
	document.getElementById('text').style.fontSize=tam+'px' ;
	
}
<!-- Final Função que aumenta e diminui o tamanho da fonte na área de notícias -->

<!-- Início Máscaras -->
function txtBoxFormat(objeto, sMask, evtKeyPress) {
    var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;


if(document.all) { // Internet Explorer
    nTecla = evtKeyPress.keyCode;
} else if(document.layers) { // Nestcape
    nTecla = evtKeyPress.which;
} else {
    nTecla = evtKeyPress.which;
    if (nTecla == 8) {
        return true;
    }
}

    sValue = objeto.value;

    // Limpa todos os caracteres de formatação que
    // já estiverem no campo.
    sValue = sValue.toString().replace( "-", "" );
    sValue = sValue.toString().replace( "-", "" );
    sValue = sValue.toString().replace( ".", "" );
    sValue = sValue.toString().replace( ".", "" );
    sValue = sValue.toString().replace( "/", "" );
    sValue = sValue.toString().replace( "/", "" );
    sValue = sValue.toString().replace( ":", "" );
    sValue = sValue.toString().replace( ":", "" );
    sValue = sValue.toString().replace( "(", "" );
    sValue = sValue.toString().replace( "(", "" );
    sValue = sValue.toString().replace( ")", "" );
    sValue = sValue.toString().replace( ")", "" );
    sValue = sValue.toString().replace( " ", "" );
    sValue = sValue.toString().replace( " ", "" );
    fldLen = sValue.length;
    mskLen = sMask.length;

    i = 0;
    nCount = 0;
    sCod = "";
    mskLen = fldLen;

    while (i <= mskLen) {
      bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/") || (sMask.charAt(i) == ":"))
      bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " "))

      if (bolMask) {
        sCod += sMask.charAt(i);
        mskLen++; }
      else {
        sCod += sValue.charAt(nCount);
        nCount++;
      }

      i++;
    }

    objeto.value = sCod;

    if (nTecla != 8) { // backspace
      if (sMask.charAt(i-1) == "9") { // apenas números...
        return ((nTecla > 47) && (nTecla < 58)); } 
      else { // qualquer caracter...
        return true;
      } 
    }
    else {
      return true;
    }
  }
<!-- Final Máscaras -->
