<!-- 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 -->

<!--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
/* inicio ajax para exibição detalhes sistema em div */
var xmlRequest;
function createXMLHttpRequest(){
	if(window.ActiveXObject){
		try{
			xmlRequest = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try {
				xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlRequest = false;
			}
		}
		// branch for native XMLHttpRequest object
	}else if( window.XMLHttpRequest ) {
		try{
			xmlRequest = new XMLHttpRequest();
		}catch(e){
			xmlRequest = false;
		}
	}
}
function abrirDiv(id0){
	var id = id0;
	createXMLHttpRequest();
	var mudancaEstado=function(){
		if(xmlRequest.readyState == 4){
            //document.getElementById('contador').innerHTML = xmlRequest.responseText;
			document.getElementById('div1').style.display = 'block';
			//document.getElementById('div1').style.display = 'block';
			//document.getElementById( 'div1' ).style.left = ( screen.width - 970 ) / 2+"px";
			//document.getElementById( 'div1' ).style.top = ( screen.height - 600 ) / 2+"px";
			document.getElementById('div1').innerHTML = xmlRequest.responseText;
        }else{
				document.getElementById("div1").innerHTML = "<img src='../imagens/aguarde.gif'>";
		}
	}
	xmlRequest.onreadystatechange = mudancaEstado;
	var tempo = new Date().getTime();
	var url = "../arquivos_solucoes_web/exibe_detalhes.php?id="+id+"&local=div&tempo="+tempo;
    xmlRequest.open("get",url,true);
	xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
	xmlRequest.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
	xmlRequest.setRequestHeader("Cache-Control", "post-check=0, pre-check=0");
	xmlRequest.setRequestHeader("Pragma", "no-cache"); 
	xmlRequest.send(null);
}

function fecharDiv(){
	document.getElementById('div1').style.display = 'none';
	document.getElementById('div1').style.display = 'none';
}
/*function abrirDiv(id){
	document.getElementById('div1').style.display = 'block';
	//document.getElementById('div1').style.display = 'block';
	document.getElementById( 'div1' ).style.left = ( screen.width - 970 ) / 2+"px";
	document.getElementById( 'div1' ).style.top = ( screen.height - 600 ) / 2+"px";

}*/
/* fim ajax para exibição detalhes sistema em div */

<!-- Popup Imprimir Lista Compras-->
function imprimir_lista(URL)
{
   var width = 350;
   var height = 500;

   var left = 50;
   var top = 50;
   
window.open(URL,'lista_compras', 'width='+width+', height='+height+', top='+top+', left='+left+', toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,menubar=no')
}
<!-- Popup Imprimir Lista Compras-->

<!-- Popup Imprimir Receita-->
function imprimir_receita(URL)
{
   var width = 600;
   var height = 500;

   var left = 50;
   var top = 50;
   
window.open(URL,'receita', 'width='+width+', height='+height+', top='+top+', left='+left+', toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,menubar=no')
}
<!-- Popup Imprimir Receita-->
<!-- inicio validacoes -->
function validaFormBuscaNoticias(){
if(document.seleciona_noticias.mes_noticia.value == ""){
alert('Você deve selecionar um Mês / Ano a ser exibido!!');
seleciona_noticias.mes_noticia.focus();
return false;
} else {
return true;
}

}

//validaBuscaPortfolioWebsites
function validaBuscaPortfolioWebsites(){
if(document.busca_portfolio_websites.solucao.value == ""){
alert('Você deve selecionar uma Solução!!');
busca_portfolio_websites.solucao.focus();
return false;
}else if(document.busca_portfolio_websites.segmento.value == ""){
alert('Você deve selecionar um Segmento!!');
busca_portfolio_websites.segmento.focus();
return false;
} else {
return true;
}

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


//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="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


//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;
    }
  }
  
//impede_que_abra_website_em_frame_ou_iframe
if(top.frames.length!=0){ top.location=self.document.location; }
