function limitaNumerosEContinua(campo,qtd,nomeSeguinte){
    tamanho = campo.value;
    tamanho = tamanho+"";
    if(tamanho.length >= qtd){
        campo.value = tamanho.substr(0,qtd);
        document.getElementById(nomeSeguinte).focus();
        document.getElementById(nomeSeguinte).select(); 
    }
}
