// JavaScript Document
	try{
	xmlhttp = new XMLHttpRequest();}catch(ee){try{
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
	catch(E){xmlhttp = false;}}}
function ajaxCat(varCatInstitucional) {
		xmlhttp.open("POST", varCatInstitucional,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxModulo() {
		xmlhttp.open("POST", "viewModulos.asp?id_institucional="+document.formcorrecao.id_institucional.value+"&idcategoria="+document.formcorrecao.idcategoria.value,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('modulo').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('modulo').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxCatModulo() {
		xmlhttp.open("POST", "catModulo.asp",true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxClose() {
		xmlhttp.open("POST", "closeDisplay.asp" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxNewGrupoCad() {
		xmlhttp.open("POST", "cadGrupo.asp?grupo="+document.formgrupo.grupo.value+"&action=insert" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxFiltroCorrecaoRelease() {
		xmlhttp.open("POST", "selectCorrecaoRelease.asp?data_inicio="+document.formfiltra.data_inicio.value+"&data_fim="+document.formfiltra.data_fim.value ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('requestFilter').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('requestFilter').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxNewDpto() {
		xmlhttp.open("POST", "cadDepartamento.asp" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

function ajaxNewDptoCad() {
		xmlhttp.open("POST", "cadDepartamento.asp?dpto="+document.formdpto.dpto.value+"&action=insert" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

function ajaxNewGrupo() {
		xmlhttp.open("POST", "cadGrupo.asp" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxNewContact(LTvarID) {
		xmlhttp.open("POST", LTvarID ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxNewCat() {
		xmlhttp.open("POST", "cadInstitucionalPagina.asp?cat="+document.formcat.categoria.value+"&action=insert" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}


function ajaxNewList(varParametros) {
	
		var varPageList = varParametros+"&titulo="+document.formlist.titulo.value+"&id_list="+document.formlist.id_list.value+"&tabela="+document.formlist.tabela.value;
		xmlhttp.open("POST", varPageList ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}


function ajaxNewCat2() {
		xmlhttp.open("POST", "cadInstitucionalPagina.asp?cat="+document.formcat.categoria.value+"&action=update" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

function ajaxNewCatModulo() {
		xmlhttp.open("POST", "catModulo.asp?cat="+document.formcat.categoria.value+"&action=insert" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxDelDpto(LTparDelDpto) {
	
   if (confirm("Deseja realmente Excluir?"))
   {
		xmlhttp.open("POST", LTparDelDpto ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
   }

}
function ajaxDelCat(LTparDel) {
	
   if (confirm("Deseja realmente Excluir?"))
   {
		xmlhttp.open("POST", LTparDel ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
   }

}

function ajaxUp2Cat(LTparUp) {
	
   if (confirm("Deseja realmente Alterar?"))
   {
		xmlhttp.open("POST", LTparUp ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
   }

}
function ajaxUpCat(LTparUp) {
	
   
		xmlhttp.open("POST", LTparUp ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
  

}


function ajaxDelArea(LTparDel) {
	
   if (confirm("Deseja realmente Excluir?"))
   {
		xmlhttp.open("POST", LTparDel ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
   }

}
function ajaxDelCatModulo(LTparDel) {
	
   if (confirm("Deseja realmente Excluir?"))
   {
		xmlhttp.open("POST", LTparDel ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
   }

}
function ajaxRefreshCat() {
		xmlhttp.open("POST", "catView.asp" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('refreshcat').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Atualizando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('refreshcat').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxRefreshCatMod() {
		xmlhttp.open("POST", "catViewModulo.asp" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('refreshcat').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Atualizando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('refreshcat').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxViewModulo(pageModulo) {
		xmlhttp.open("POST", pageModulo ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Atualizando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxViewModuloCat(pageModulo) {
		xmlhttp.open("POST", pageModulo ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Atualizando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}



function ajaxViewList(pageModulo) {
		xmlhttp.open("POST", pageModulo ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Atualizando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

function ajaxModuloFaq() {
		xmlhttp.open("POST", "moduloFaq.asp?id_institucional="+document.formfaq.id_institucional.value ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('viewModulo').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('viewModulo').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxNewModuloFaq() {
		xmlhttp.open("POST", "moduloFaq.asp" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxNewFaqModulo() {
		xmlhttp.open("POST", "moduloFaq.asp?area="+document.formarea.area.value+"&action=insert" ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('showdiv').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('showdiv').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}
function ajaxViewModuloFaq() {
		xmlhttp.open("POST", "viewModuloFaq.asp?id_institucional="+document.getElementById('id_institucional').value ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('viewModulo').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('viewModulo').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}


function ajaxCarregaPagina() {
		xmlhttp.open("POST", "cadInstitucionalMenu.asp?id_pagina="+document.forminstitucional.pagina.value ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('viewModulo').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('viewModulo').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

function ajaxModuloCliente(pageModulox, divModulox) {
		xmlhttp.open("POST", pageModulox ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById(divModulox).innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Atualizando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById(divModulox).innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}


function ajaxHabilitaEstPag(pageHabilita, divHabilita) {
		xmlhttp.open("POST", pageHabilita ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById(divHabilita).innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Atualizando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById(divHabilita).innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

function ajaxCarregaSubCat() {
		xmlhttp.open("POST", "list_subCategoria.asp?id_categoria="+document.produto.id_categoria.value ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('list_SubCategoria').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('list_SubCategoria').innerHTML = xmlhttp.responseText
					ajaxCarregaProduto();
				}}
			xmlhttp.send('') 
}


function ajaxCarregaProduto() {
		xmlhttp.open("POST", "list_Produto.asp?id_sub_categoria="+document.produto.id_sub_categoria.value ,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('list_Produto').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('list_Produto').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}


function ajaxVotaEnquete(){
		xmlhttp.open("POST", "enquete/enquete.asp?action="+document.enquete.action.value+"&valortotal="+document.getElementById('valortotal').value+"&id_enquete_perguntas="+document.getElementById('id_enquete_perguntas').value,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('divEnquete').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('divEnquete').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

function ajaxSelectEnquete(idPergunta){
		xmlhttp.open("POST", "enquete/btenquete.asp?id_pergunta="+idPergunta,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('abilita_bt').innerHTML = '<input name="votar" type="button" value="VOTAR" class="fontAzulMarinhoNegrito12" disabled="disabled"/>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('abilita_bt').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}




function ajaxParciaEnquete(qtde) {
	
			xmlhttp.open("POST", "enquete/enquete.asp?action=voto-ok&valortotal="+qtde,true);
		xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=utf-8');
		xmlhttp.onreadystatechange=function() { 
					document.getElementById('divEnquete').innerHTML = '<img src="img/loading1.gif" width="16" height="16" /><font size="1" face="tahoma">Aguarde Carregando...</font>'
		   if(xmlhttp.readyState == 4){
					document.getElementById('divEnquete').innerHTML = xmlhttp.responseText
				}}
			xmlhttp.send('') 
}

