function fmtMoney(value) { var count; var order,n=0; for(count=1;count-12) { order = result.charAt(result.length-count) + ',' + order; n=1; } else { order = '' + result.charAt(result.length-count) + order; n++; } } return order; } VerifiqueTAB=true; function Mostra(quem, tammax) { if ( (quem.value.length == tammax) && (VerifiqueTAB) ) { var i=0,j=0, indice=-1; for (i=0; i=p1 && v<=p2) {return true;} else {return false;} } function fmtCPF(value) { var result=''; if(value.length>8) { for(count=1;count-10;i--) { result = value.charAt(i) + result; if(i==(value.length-2)) result = '-' + result; } } return result; } function fmtCPFCNPJ(value) { var result=''; if(value.length>10) { for(count=1;count-1 11) result = fmtCNPJ(value); else result = fmtCPF(value) } return result; } function fmtCNPJ(value) { var result = ''; var count,n=0; if(value.length>10) { for(count=1;count-12) { result = value.charAt(value.length-count) + '.' + result; n=1; } else { result = '' + value.charAt(value.length-count) + result; n++; } } } return result; } function fmtCEP(value) { var result=''; if(value.length>7) { for(count=1;count-10;i--) { result = value.charAt(i) + result; if(i==(value.length-3)) result = '-' + result; } } else result='00000-000'; return result; } function ValidaCPF(value) { dig_1 = 0; dig_2 = 0; controle_1 = 10; controle_2 = 11; lsucesso = 1; for(count=1;count-1