function controle()
{
    window.document.getElementById('js').innerHTML += '<iframe name="controle" id="controle" frameborder="0" height="0" width="0"></iframe>';
    window.document.forms[0].f_0.focus();
}
controle();
function cadastreSePF() {
    window.document.getElementById('cadastreSe_1').style.visibility = 'hidden';
    window.document.getElementById('cadastreSe_1_1').style.visibility = 'hidden';
    window.document.getElementById('cadastreSe_1_2').style.visibility = 'hidden';
    window.document.getElementById('cadastreSe_2').style.visibility = 'visible';
    window.document.getElementById('cadastreSe_0').style.height = '335px';
}
function cadastreSePJ() {
    window.document.getElementById('cadastreSe_2').style.visibility = 'hidden';
    window.document.getElementById('cadastreSe_2_1').style.visibility = 'hidden';
    window.document.getElementById('cadastreSe_2_2').style.visibility = 'hidden';
    window.document.getElementById('cadastreSe_1').style.visibility = 'visible';
    window.document.getElementById('cadastreSe_0').style.height = '485px';
}
function cadastreSeComoConheceu(idSuperior, valor) {
    var elemento1 = idSuperior + '_1';
    var elemento2 = idSuperior + '_2';
    if (valor == 'Indicação') {
        window.document.getElementById(elemento1).style.visibility = 'visible';
        window.document.getElementById(elemento2).style.visibility = 'hidden';
    }
    else if (valor == 'Outro') {
        window.document.getElementById(elemento2).style.visibility = 'visible';
        window.document.getElementById(elemento1).style.visibility = 'hidden';
    }
    else {
        window.document.getElementById(elemento1).style.visibility = 'hidden';
        window.document.getElementById(elemento2).style.visibility = 'hidden';
    }
}
function emailFocus() {
    if (window.document.getElementById('rastreamentoLogin').value == 'E-mail')
        window.document.getElementById('rastreamentoLogin').value = '';
}
function emailBlur() {
    if (window.document.getElementById('rastreamentoLogin').value == '')
        window.document.getElementById('rastreamentoLogin').value = 'E-mail';
}
function senhaFocus() {
    if (window.document.getElementById('rastreamentoSenha').value == 'Senha') {
        window.document.getElementById('rastreamentoSenha').value = '';
        window.document.getElementById('rastreamentoSenha').type = 'password';
    }
}
function senhaBlur() {
    if (window.document.getElementById('rastreamentoSenha').value == '') {
        window.document.getElementById('rastreamentoSenha').value = 'Senha';
        window.document.getElementById('rastreamentoSenha').type = 'text';
    }
}

