function changeTab(Id, pfId){
	var cAjax = new Ajax();
    if (Id == 9999) {
        document.getElementById('descricao').style.visibility = 'hidden';
        document.getElementById('descricao').style.position = 'absolute';
        document.getElementById('borda_conteudo').style.visibility = 'hidden';
        document.getElementById('borda_conteudo').style.position = 'absolute';
        /*document.getElementById('relacionados').style.visibility = 'visible';
         document.getElementById('relacionados').style.position = 'static';*/
    }
    else 
        if (Id == 0) {
            document.getElementById('descricao').style.visibility = 'visible';
            document.getElementById('descricao').style.position = 'static';
            document.getElementById('borda_conteudo').style.visibility = 'hidden';
            document.getElementById('borda_conteudo').style.position = 'absolute';
        /*document.getElementById('relacionados').style.visibility = 'hidden';
         document.getElementById('relacionados').style.position = 'absolute';*/
        }
        else {
            document.getElementById('descricao').style.visibility = 'hidden';
            document.getElementById('descricao').style.position = 'absolute';
            document.getElementById('borda_conteudo').style.visibility = 'visible';
            document.getElementById('borda_conteudo').style.position = 'static';
            /*document.getElementById('relacionados').style.visibility = 'hidden';
         document.getElementById('relacionados').style.position = 'absolute';*/
            cAjax.onStateChange = function(classState, httpState, retornoHTML, retornoXML){
                if (httpState == 200) {
                    document.getElementById('borda_conteudo').innerHTML = retornoHTML;
                }
                else {
                    alert('Erro ' + httpState + '\n\nFavor entrar em contato com o administrador do sistema.');
                }
                
            }
            cAjax.load('../borda_conteudo.asp', 'id=' + Id + '&pf_id=' + pfId, 'POST'); // Chama a função AJAX
        }
}