<!--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');
}
//-->Termino Janela Ver Foto Zoom

<!--  Validação do campo busca do Informativo-->
function valida_busca_informativo(){
        if( document.getElementById('busca_noticias').value.length < 3 || document.getElementById('busca_noticias').value == "Utilize a busca para encontrar o informativo que deseja:" ){
        alert("Para fazer a busca, digite o que deseja no campo de busca dos informativos.");
        return false;
        }
}
<!--  Validação do campo busca Informativo-->


<!--  Validação do campo busca de dos produtos-->
function valida_busca_produto(){
        if( document.getElementById('busca_produto').value.length < 3 || document.getElementById('busca_produto').value == "Utilize a busca para encontrar o produto que deseja:" ){
        alert("Para fazer a busca, digite o que deseja no campo de busca dos produtos.");
        return false;
        }
}
<!--  Validação do campo busca de busca dos produtos-->

//Início validação 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;
}
//Termino validação newsletter

//inicio formata CEP
function Formata_CEP(objeto){
	if (objeto.value.indexOf("-") == -1 && objeto.value.length > 5){ objeto.value = ""; }
	if (objeto.value.length == 5){
		objeto.value += "-";
	}
}


//Cadastrar pedido
function validaformPedido(){
if(document.formulario.nome.value < 2){
alert('Você deve preencher o campo Nome!');
formulario.nome.focus();
return false;
} else if(document.formulario.cpf_cnpj.value < 2){
alert('Você deve preencher o campo CPF/CNPJ corretamente!');
formulario.cpf_cnpj.focus();
return false;
} else if(document.formulario.endereco.value < 2){
alert('Você deve preencher o campo Endereço.');
formulario.endereco.focus();
return false;
} else if(document.formulario.cidade.value < 2){
alert('Você deve preencher o campo Cidade!');
formulario.cidade.focus();
return false;
} else if(document.formulario.cep.value < 2){
alert('Você deve preencher o campo CEP!');
formulario.cep.focus();
return false;
} else if(document.formulario.estado.value == ""){
alert('Você deve escolher um Estado!');
formulario.estado.focus();
return false;
} else if(document.formulario.telefone.value < 2){
alert('Você deve preencher o campo Telefone!');
formulario.telefone.focus();
return false;
} else if(document.formulario.email.value < 2){
alert('Você deve preencher o campo Email com um endereço válido.');
formulario.email.focus();
return false;
} else {
return true;
}
}

//Início validação forma de envio
function validaformFreteTipo(){
	//validacao de radio buttons sem saber quantos sao
	nform = document.form_frete;
	marcado = -1
	for (i=0; i<nform.forma_envio.length; i++) {
	if (nform.forma_envio[i].checked) {
	marcado = i
	resposta = nform.forma_envio[i].value
	}
	}
	if (marcado == -1) {
	alert("Selecione a forma de envio...");
	nform.forma_envio[0].focus();
	return false;
	} else 
	return true;
}

function validaformFreteCep(){
	var cep = document.form_frete.cep.value;
	if(cep.length < 8){
	alert('Digite o CEP corretamente...');
	//form_frete.cep.focus();
	return false;
	} else
	return true;
}
//Termino validação forma de envio


// 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' ;
	
}
//-->


<!-- Início mostra conteúdo -->
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 mostra conteudo -->


//mascaras
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;
    }
  }
  
//inicio 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="loop" value="false">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+caminho+'" quality="high" wmode="transparent" loop="false" 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
