
//function hideSelect() {
//	if (!document.getElementsByTagName){ return; }
//	var allfields = document.getElementsByTagName("select");
//	var allvalues = new Array();
//	for (var i=0; i<allfields.length; i++){
//		var field = allfields[i];
//		field.style.display = 'none';
//	}
//}

//function showSelect() {
//	if (!document.getElementsByTagName){ return; }
//	var allfields = document.getElementsByTagName("select");
//	var allvalues = new Array();
//	for (var i=0; i<allfields.length; i++){
//		var field = allfields[i];
//		field.style.display = 'block';
//	}
//}


function EW_ElementShow (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		//hideSelect();
		obj.style.display = "block";
        //document.frmCadastrar.cadastro_nome.focus();
        if (id == "fundo_form_assinatura") {
           //document.getElementById(comboQtd).style.display = 'none';
       } 

	}
}

function EW_ElementShow_Cad (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		//hideSelect();
		obj.style.display = "block";
        document.frmCadastrar.cadastro_nome.focus();
        
        var varnome_pagina = getCookie('nome_pagina');
        
        if (varnome_pagina == "artigos_cont" || varnome_pagina == "artigos_assinatura" || varnome_pagina == "artigos_folha" || varnome_pagina == "artigos_jornal1" || varnome_pagina == "artigos_jornal2" || varnome_pagina == "artigos_mat_esp" || varnome_pagina == "artigos_matematica" || varnome_pagina == "artigos_painel1" || varnome_pagina == "artigos_painel2" || varnome_pagina == "artigos_pitagoras"){
            document.FormComboArtigos.comboArtigos.style.display = 'none';
        }
        
	}
}

function EW_ElementShow_Ass (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		obj.style.display = "block";
		document.FrmConsulta.comboQtd.style.display = 'none';
	}
}

function EW_ElementHide (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		//showSelect();
		obj.style.display = "none";
        document.frmCadastrar.cadastro_nome.value="";
        document.frmCadastrar.cadastro_endereco.value="";
        document.frmCadastrar.cadastro_numero.value="";
        document.frmCadastrar.cadastro_cidade.value="";
        document.frmCadastrar.cadastro_estado.value="";
        document.frmCadastrar.cadastro_telefone.value="";
        document.frmCadastrar.cadastro_email.value="";
		    document.frmCadastrar.cadastro_cpf.value="";
		    document.frmCadastrar.cadastro_cnpj.value="";
		    document.frmCadastrar.cadastro_login.value="";
		    document.frmCadastrar.cadastro_senha.value="";
		    document.frmCadastrar.confirma_senha.value="";
		    document.frmCadastro.pos_login.focus();
	}
}

function EW_ElementHide_Cad (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		//showSelect();
		obj.style.display = "none";
        document.frmCadastrar.cadastro_nome.value="";
        document.frmCadastrar.cadastro_endereco.value="";
        document.frmCadastrar.cadastro_numero.value="";
        document.frmCadastrar.cadastro_cidade.value="";
        document.frmCadastrar.cadastro_estado.value="";
        document.frmCadastrar.cadastro_telefone.value="";
        document.frmCadastrar.cadastro_email.value="";
		    document.frmCadastrar.cadastro_cpf.value="";
		    document.frmCadastrar.cadastro_cnpj.value="";
		    document.frmCadastrar.cadastro_login.value="";
		    document.frmCadastrar.cadastro_senha.value="";
		    document.frmCadastrar.confirma_senha.value="";
		    document.frmCadastro.pos_login.focus();
		    
		    var varnome_pagina = getCookie('nome_pagina');
		    
		    if (varnome_pagina == "artigos_cont" || varnome_pagina == "artigos_assinatura" || varnome_pagina == "artigos_folha" || varnome_pagina == "artigos_jornal1" || varnome_pagina == "artigos_jornal2" || varnome_pagina == "artigos_mat_esp" || varnome_pagina == "artigos_matematica" || varnome_pagina == "artigos_painel1" || varnome_pagina == "artigos_painel2" || varnome_pagina == "artigos_pitagoras"){
            document.FormComboArtigos.comboArtigos.style.display = 'block';
        }
	}
}


function EW_ElementHide_Ass (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		
		obj.style.display = "none";
		document.FrmConsulta.comboQtd.style.display = 'block';
    
	}
}

function EW_ElementHide_Lem (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		
		document.getElementById("resposta_lembrete").innerHTML = "";
    document.frmLembrar_senha.cadastro_cpf.value = "";
    document.frmLembrar_senha.cadastro_cnpj.value = "";
		obj.style.display = "none";
		setTimeout("recupera_dados()",1000);
    
	}
}

function EW_ElementHide_Alt (id)
{
	var obj = document.getElementById (id);

	if (obj != null)
	{
		
		document.getElementById("resposta_altera_dados").innerHTML = "";
    document.frmAlterar.altera_senha.value = "";
    document.frmAlterar.confirma_senha.value = "";
		obj.style.display = "none";
    
	}
}
