var iZoom = 0;
function ZOOM(conteudo, op)
{
	var i = 0;
	var pObjs; 
	var iTamPadrao = '14';
	var _iFonte;
	var sTags = 'p|div|table|tr|td|a|span|font';
	var aTags = sTags.split('|');
	var x = 0;
	
	
	if ((op == '+' && iZoom >= 5) || (op == '-' && iZoom <= -5))
	{
		return;
	}
		
	if (document.getElementById(conteudo).style.fontSize != '')
	{
		_iFonte = document.getElementById(conteudo).style.fontSize.replace('px','');
		
		if (op == '+')
		{
			_iFonte = (_iFonte*1) + 2;
		}
		else
		{
			_iFonte = (_iFonte*1) - 2;
		}
		
		
		document.getElementById(conteudo).style.fontSize = _iFonte + 'px';
	}
	
	for (x = 0; x < aTags.length; x++)
	{
		
		pObjs = document.getElementById(conteudo).getElementsByTagName(aTags[x]); 
		for (i=0; i < pObjs.length; i++)
		{
			//_iFonte = iTamPadrao;
			if (pObjs[i].style.fontSize != '')
			{
				_iFonte = pObjs[i].style.fontSize.replace('px','');
				if (op == '+')
				{
					_iFonte = (_iFonte*1) + 2;
				}
				else
				{
					_iFonte = (_iFonte*1) - 2;
				}
				pObjs[i].style.fontSize = _iFonte + 'px';
			}
		}
	}
		
	if (op == '+') { iZoom++; } else { iZoom--; }
	
}



        function newslaterh(){
        if ( document.getElementById('campo23').value != '' && document.getElementById('campo24').value != '' ) {
            if ( (document.getElementById('campo24').value.indexOf("@")==-1)  || (document.getElementById('campo24').value.indexOf(".")==-1)  ){
                alert("Por favor, preencha corretamente o campo E-mail");
                document.getElementById('campo24').focus();
            } else {
             window.location='formulario_post.asp?campo23='+document.getElementById('campo23').value+'&campo24='+document.getElementById('campo24').value+'&cod_form=5&cod_pagina=380';
            }
           
        } else {
            if ( document.getElementById('campo23').value == '' ) {
                document.getElementById('campo23').focus();
            } else {
                document.getElementById('campo24').focus();
            }
            alert('Por favor, preencha os campos corretamente');
        }
    }

	function tckMarquee(obj,cond) {
		if(cond) { obj.start(); } else { obj.stop(); }
	}
	function inverteresquerda()  {
		document.getElementById("marqueegiratorio").direction = "left";
	}
	function inverterdireita()  {
		document.getElementById("marqueegiratorio").direction = "right";
	}
	
function mais(){
            
 // var i = 1;
 // while ( document.getElementById("conteudo"+i) ) {
 //   tam = document.getElementById("conteudo"+i).style.fontSize;              
 //   if ( tam == '' ) { tam = 1 } else { tam = tam.replace("px",""); }{ tam = parseInt(tam) + 1; }
 //   if ( tam < 20 ) {
 //       document.getElementById("conteudo"+i).style.fontSize = tam+'px';
 //   }
 //   i = i + 1;
 // }
  
 ZOOM('dvConteudo', '+');
  
}

function menos(){

  //var i = 1;               
  //while ( document.getElementById("conteudo"+i) ) {
  //  tam = document.getElementById("conteudo"+i).style.fontSize;
  //  if ( tam == '' ) { tam = 1 } else { tam = tam.replace("px",""); }{ tam = parseInt(tam) - 1; }
  //  if ( tam > 8 ) {
  //      document.getElementById("conteudo"+i).style.fontSize = tam+'px';
  //  }
  //  i = i + 1;
  //}
 
 ZOOM('dvConteudo', '-');
  
}

function normal(){

  var i = 1;
  while ( document.getElementById("conteudo"+i) ) {
    tam = document.getElementById("conteudo"+i).style.fontSize;{tam = "12px";} 
    document.getElementById("conteudo"+i).style.fontSize = tam;
    i = i + 1;
  }              
  
}

function popopen(a,b,c)
{
window.open(a,b,c);
}

  
  function mOvr(src,clrOver) {

    if (!src.contains(event.fromElement)) {

	  src.style.cursor = 'hand';

	  src.bgColor = clrOver;

	}

  }

  function mOut(src,clrIn) {

	if (!src.contains(event.toElement)) {

	  src.style.cursor = 'default';

	  src.bgColor = clrIn;

	}

  }

   function mclick(src,clrOver) {

    if (!src.contains(event.fromElement)) {

	  src.style.cursor = 'hand';

	  src.bgColor = clrOver;
                  self.location.href='#';
	}

  }
  
 <!--
function MM_findObj(n, d) { //v3.0
  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); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->


function votarvalida(formnome,idenquete)
{
	
	var total_opcoes = eval('document.form_votacao'+formnome+'.voto');
	var votou=0
	
	for (i=0;i<total_opcoes.length;i++){
	     var opcao = eval('document.form_votacao'+formnome+'.voto[i]');
	     if (opcao.checked){
	        var votou=opcao.value
	     }
	
	}
	

	     if (votou == 0){
	        alert("Voce não escolheu nenhuma opção");
	     }
	     else
	     {
	         window.open("votacao.asp?ID="+idenquete+"&opcao="+votou,"voto","width=500,height=350,scrollbars=auto,toolbar=no,top=10,left=15");
	     }

}