﻿function exibeValor(nomeCampo, lenCampo, controle) {
    if ((nomeCampo.value.length == lenCampo) && (checarTabulacao)) {
        var i = 0;
        for (i = 0; i < document.forms[0].elements.length; i++) {
            if (document.forms[0].elements[i].name == nomeCampo.name) {
                while ((i + 1) < document.forms[0].elements.length) {
                    if (document.forms[0].elements[i + 1].type != "hidden") {
                        document.forms[0].elements[i + 1].focus();
                        break;
                    }
                    i++;
                }
                checarTabulacao = false;
                break;
            }
        }
    }
}

function stopTabCheck(nomeCampo)
{ checarTabulacao = false; }

function startTabCheck()
{ checarTabulacao = true; }

function CallPrint(strid) {
    var prtContent = document.getElementById(strid);
    var WinPrint = window.open('', '', 'letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
    WinPrint.document.write(prtContent.innerHTML);
    WinPrint.document.close();
    WinPrint.focus();
    WinPrint.print();
    WinPrint.close();
    prtContent.innerHTML = strOldOne;
}
