function Geral(sNomeURL,sParametros,sOndeMostrar)
	{
	 
	 //alert(sNomeURL+" - "+sParametros+" - "+sOndeMostrar);
	 
	 var url= sNomeURL;
	  url = url  + "?" + sParametros + "&sid=" + Math.random();
	 xmlHttp = ConfigurarAjax(url, sOndeMostrar, "");
	}









function Fechar_Div(nome_div)
	{
	document.getElementById(nome_div).style.display='none';
	}









//Envia dados por botões
    
function ObterCamposFormulario(nome_formulario)
	   {
	    var url = "";
	    var conector = "";
	    var formulario = document.getElementById(nome_formulario);
		var usou = false;
	    if (formulario.length > 0) 
	    {
	     for (i=0; i<formulario.length; i++) {
			usou = false;
			if (formulario[i].type == "radio") 
	      {
	       if (formulario[i].checked == true)
	       {
		url = url + conector + formulario[i].name + "=" + formulario[i].value;
			usou = true;
	       }

	      }
	      else
	      {
	       if (formulario[i].type == "checkbox") 
	       {
		if (formulario[i].checked == true)
		{
		 url = url + conector + formulario[i].name + "=" + formulario[i].value;
			usou = true;
		}
	       }
	       else
	       {
		if ((formulario[i].type != "button") && (formulario[i].type != "reset"))
		{
		 url = url + conector + formulario[i].name + "=" + formulario[i].value;
			usou = true;
		}
	       }
	      }
		  if (usou == true)
		  {
	      conector = "&";
		  }
	     }
	    }
	    return url;
	   }
	





// Início - Código de aumentar e diminuir a letra			
		
var tagAlvo = new Array('p'); //pega todas as tags p//
 var tamanhos = new Array( '9px','11px','13px','15px','17px','19px','21px' );
  var tamanhoInicial = 2;

function mudaTamanho( idAlvo,acao ){
if (!document.getElementById) return
  var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo;
  tamanho += acao;
  if ( tamanho < 0 ) tamanho = 0;
  if ( tamanho > 6 ) tamanho = 6;
  tamanhoInicial = tamanho;
  if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];

  selecionados.style.fontSize = tamanhos[ tamanho ];

  for ( i = 0; i < tagAlvo.length; i++ ){
    tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );
    for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ];
  }
}
// Fim - Código de aumentar e diminuir a letra		











// Inicio - Limita quantidade do textarea para 255 caracteres
function blocTexto(valor)
{
    quant = 250;
    total = valor.length;
    if(total <= quant)
    {
        resto = quant - total;
        document.getElementById('cont').innerHTML = resto;
    }
    else
    {
        document.getElementById('comentario').value = valor.substr(0,quant);
    }
}
// Fim - Limita quantidade do textarea para 255 caracteres



