// THFuncao - Barras de navegacao /* function SemBarra(){document.body.style.overflow='hidden';} function Combarra(){document.body.style.overflow='';} */ /* ---------------------------------------------------------------------------------------------------------------------------------------------------- USER - AREA DO CLIENTE ---------------------------------------------------------------------------------------------------------------------------------------------------- */ /* Links Gerais */ function THFLinkUser(pagina){ document.location.href=pagina; } /* Menu User */ function THFMenuUserEnvia(acao){ var acao = acao; document.frm.action="conteudo_user.php"; document.frm.method="Get"; document.frm.acao.value = acao; document.frm.submit(); } /* Menu Vaga */ function THFMenuVagaEnvia(acao){ var acao = acao; document.frm.action="conteudo_vaga.php"; document.frm.method="Get"; document.frm.acao.value = acao; document.frm.submit(); } /* Tab User */ function THFMenuTabEnvia(acao,pid){ var acao = acao; var pid = pid; document.frmped.action="conteudo_user.php"; document.frmped.method="Get"; document.frmped.acao.value = acao; document.frmped.pid.value = pid; //alert("conteudo_user.php?acao="+acao+"&pid="+pid); //alert(""+document.frmped.pid.value+""); document.frmped.submit(); } /* Tab User - Link */ function THFMenuTabLink(acao,id){ var acao = acao; var id = id; document.frmlink.action="conteudo_user.php"; document.frmlink.method="Get"; document.frmlink.acao.value = acao; document.frmlink.id.value = id; //alert("conteudo_user.php?acao="+acao+"&id="+id); document.frmlink.submit(); } /* ---------------------------------------------------------------------------------------------------------------------------------------------------- PEDIDOS - CARRINHO DE PRODUTOS ---------------------------------------------------------------------------------------------------------------------------------------------------- */ // Remove Produto do Carrinho function THFRemover(produto){ var produto = produto; if (confirm('Deseja remover este produto do carrinho?')){ document.location="http://www.autosupervidros.com.br/produto_carrinho.php?ACAOC=remover&check="+ produto +"" return true; } else { return false; } } // Limpar Carrinho function THFLimpar(){ if (confirm('Deseja mesmo esvaziar o carrinho?')){ document.location="http://www.autosupervidros.com.br/produto_carrinho.php?ACAOC=limpar" return true; } else { return false; } } // Atualiza Produto no Carrinho function THFAtualiza() { document.forms[0].opc_atualizar.value = 1; document.forms[0].submit(); } // Carrinho Pop function THFPop(URL,LARG,ALT,NOME) { var width = LARG; var height = ALT; window.open(URL,'conf', 'width='+width+', height='+height+',scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no'); } /* ---------------------------------------------------------------------------------------------------------------------------------------------------- PEDIDOS - ENVIAR PEDIDO ---------------------------------------------------------------------------------------------------------------------------------------------------- */ /* Pedido - Enviar */ function THFEnviarPedido(){ document.location="https://www.autosupervidros.com.br/produto_pedido.php" //document.location="produto_pedido.php" } function THFConcluiPedido(){ document.location="http://www.autosupervidros.com.br/index.php" } function THFUserVoltar(item){ document.location="http://www.autosupervidros.com.br/conteudo_user.php?acao="+item+"" } /* ---------------------------------------------------------------------------------------------------------------------------------------------------- USER - CADASTRO / ATUALIZACAO DE DADOS ---------------------------------------------------------------------------------------------------------------------------------------------------- */ /* Confere email */ function isEmail_bad(elm) { if (elm.value.indexOf("@") != "-1" && elm.value.indexOf(".") != "-1" && elm.value.indexOf("@.") == "-1" && elm.value.indexOf(".br.") == "-1" && elm.value.indexOf("\"") == "-1" && elm.value.indexOf(" ") == "-1" && elm.value.indexOf("'") == "-1" && elm.value.indexOf(";") == "-1" && elm.value.indexOf(",") == "-1" && elm.value.indexOf("{") == "-1" && elm.value.indexOf("}") == "-1" && elm.value.indexOf("[") == "-1" && elm.value.indexOf("]") == "-1" && elm.value.indexOf("<") == "-1" && elm.value.indexOf(">") == "-1" && elm.value.indexOf("?") == "-1" && elm.value.indexOf("|") == "-1" && elm.value.indexOf("teste@teste.com") == "-1" && elm.value.indexOf("teste@") == "-1" && elm.value.indexOf("teste.com") == "-1" && elm.value.indexOf("@teste.com.br") == "-1" && elm.value.indexOf("TESTE@TESTE.com") == "-1" && elm.value.indexOf("TESTE@") == "-1" && elm.value.indexOf("TESTE.com") == "-1" && elm.value.indexOf("@TESTE.com.br") == "-1" && elm.value.indexOf("xx@xx.com") == "-1" && elm.value.indexOf("xx@") == "-1" && elm.value.indexOf("xxx@") == "-1" && elm.value.indexOf("@xx.com") == "-1" && elm.value.indexOf("@xxx.com") == "-1" && elm.value.indexOf("@xx.com.br") == "-1" && elm.value.indexOf("@xx.br") == "-1" && elm.value.indexOf("123@") == "-1" && elm.value.indexOf("12345@") == "-1" && elm.value.length > 5 ) return false; else return true; } /* Verifica Cadastro - User - Cad / Att */ function THFVerificaCad(){ var cadform = document.getElementById("form"); if (cadform.nome.value == ""){ if (cadform.login.value.length == 11) { alert("Favor informar seu Nome!"); } else { alert("Favor informar a Razão social!"); } cadform.nome.focus(); return (false); } /* if (cadform.oppesso.value == "0"){ if (cadform.numero.value.length ==""){ alert("Favor informar o NÚMERO!"); cadform.numero.focus(); return (false); } } */ if (cadform.endereco.value == "" || cadform.endereco.value == " "){ alert("Favor informar seu ENDEREÇO!"); cadform.endereco.focus(); return (false); } if (cadform.numero.value == ""){ alert("Favor informar seu NÚMERO!"); cadform.numero.focus(); return (false); } if (cadform.bairro.value == ""){ alert("Favor informar seu BAIRRO!"); cadform.bairro.focus(); return (false); } if (cadform.cidade.value == ""){ alert("Favor informar sua CIDADE!"); cadform.cidade.focus(); return (false); } if (cadform.cep.value == ""){ alert("Favor informar seu CEP!"); cadform.cep.focus(); return (false); } if (cadform.telefone.value == ""){ alert("Favor informar seu TELEFONE!"); cadform.telefone.focus(); return (false); } if (cadform.email.value == ""){ alert("Favor informar seu E-MAIL!"); cadform.email.focus(); return (false); } /* off - funcao vendedor rand() criada if (cadform.vendedor.value == ""){ alert("Favor informar o Vendedor!"); cadform.vendedor.focus(); return (false); } */ if (cadform.senha.value == ""){ alert("Favor informar sua Senha!"); cadform.senha.focus(); return (false); } if (cadform.senha.value != cadform.conf_senha.value){ alert("As senhas informadas são diferentes!"); cadform.conf_senha.focus(); return (false); } if (isEmail_bad(cadform.email) ) { alert("Seu E-MAIL está incorreto!"); cadform.email.focus(); return (false); } return (true); } /* ---------------------------------------------------------------------------------------------------------------------------------------------------- USER - IDENTIFICACAO DE USUARIO ---------------------------------------------------------------------------------------------------------------------------------------------------- */ /* esqueci a senha */ function THFVerificaSenha() { if (form.login.value.length == 0) { alert("DIGITE SEU CPF/CNPJ!"); form.login.focus(); return false; } /* verifica se o doc é valido */ var s = (form.login.value).replace(/\D/g,''); var tam=(s).length; if (!(tam==11 || tam==14)){ alert("INFORME UM CPF/CNPJ VÁLIDO!"); form.login.focus(); return false; } if (tam==11 ){ /* verifica CPF */ if (!THFValidaCPF(s)){ alert("O CPF INFORMADO É INVÁLIDO!"); form.login.focus(); //obj.select(); return false; } } if (tam==14){ /* verifica CNPJ */ if(!THFValidaCNPJ(s)){ alert("O CNPJ INFORMADO É INVÁLIDO!"); form.login.focus(); //obj.select(); return false; } } return true; } /* form login */ function THFVerificaLoga(logar) { if (logar.login.value.length == 0) { alert("DIGITE SEU CPF/CNPJ!"); logar.login.focus(); return false; } /* verifica se o doc é valido */ var s = (logar.login.value).replace(/\D/g,''); var tam=(s).length; if (!(tam==11 || tam==14)){ alert("INFORME UM CPF/CNPJ VÁLIDO!"); logar.login.focus(); return false; } if (tam==11 ){ /* verifica CPF */ if (!THFValidaCPF(s)){ alert("O CPF INFORMADO É INVÁLIDO!"); logar.login.focus(); //obj.select(); return false; } } if (tam==14){ /* verifica CNPJ */ if(!THFValidaCNPJ(s)){ alert("O CNPJ INFORMADO É INVÁLIDO!"); logar.login.focus(); //obj.select(); return false; } } if (logar.senha.value.length == 0) { alert("DIGITE SUA SENHA!"); logar.senha.focus(); return false; } return true; } /* form cad1 */ function THFVerificaCadCep(cadcep) { if (cadcep.login.value.length == 0) { alert("DIGITE SEU CPF/CNPJ!"); cadcep.login.focus(); return false; } /* verifica se o doc é valido */ var s = (cadcep.login.value).replace(/\D/g,''); var tam=(s).length; if (!(tam==11 || tam==14)){ alert("INFORME UM CPF/CNPJ VÁLIDO!"); cadcep.login.focus(); return false; } if (tam==11 ){ /* verifica CPF */ if (!THFValidaCPF(s)){ alert("O CPF INFORMADO É INVÁLIDO!"); cadcep.login.focus(); //obj.select(); return false; } } if (tam==14){ /* verifica CNPJ */ if(!THFValidaCNPJ(s)){ alert("O CNPJ INFORMADO É INVÁLIDO!"); cadcep.login.focus(); //obj.select(); return false; } } if (cadcep.cep.value.length == 0) { alert("INFORME O SEU CEP!"); cadcep.cep.focus(); return false; } /* verifica se o cep é valido */ var scep = (cadcep.cep.value).replace(/\D/g,''); var tam2=(scep).length; if (!(tam2==8 || tam2==9)){ alert("INFORME UM CEP VÁLIDO!"); cadcep.cep.focus(); return false; } return true; } /* form entrega */ function THFVerificaCep(cadcep) { if (cadcep.cep.value.length == 0) { alert("INFORME O CEP DE ENTREGA!"); cadcep.cep.focus(); return false; } /* verifica se o cep é valido */ var scep = (cadcep.cep.value).replace(/\D/g,''); var tam2=(scep).length; if (!(tam2==8 || tam2==9)){ alert("INFORME UM CEP VÁLIDO!"); cadcep.cep.focus(); return false; } if (cadcep.numero.value.length == 0) { alert("INFORME O NÚMERO DE ENTREGA!"); cadcep.numero.focus(); return false; } if (cadcep.numero.value == 0 || cadcep.numero.value == 00 || cadcep.numero.value == 000 || cadcep.numero.value == 0000 || cadcep.numero.value == 00000 ) { alert("INFORME UM NÚMERO VÁLIDO!"); cadcep.numero.focus(); return false; } return true; } /* THFuncao - Valida CPF */ function THFValidaCPF(s) { var c = s.substr(0,9); var dv = s.substr(9,2); var d1 = 0; for (var i=0; i<9; i++) { d1 += c.charAt(i)*(10-i); } if (d1 == 0) return false; d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(0) != d1){ return false; } d1 *= 2; for (var i = 0; i < 9; i++) { d1 += c.charAt(i)*(11-i); } d1 = 11 - (d1 % 11); if (d1 > 9) d1 = 0; if (dv.charAt(1) != d1){ return false; } return true; } /* THFuncao - Valida CNPJ */ function THFValidaCNPJ(CNPJ) { var a = new Array(); var b = new Number; var c = [6,5,4,3,2,9,8,7,6,5,4,3,2]; for (i=0; i<12; i++){ a[i] = CNPJ.charAt(i); b += a[i] * c[i+1]; } if ((x = b % 11) < 2) { a[12] = 0 } else { a[12] = 11-x } b = 0; for (y=0; y<13; y++) { b += (a[y] * c[y]); } if ((x = b % 11) < 2) { a[13] = 0; } else { a[13] = 11-x; } if ((CNPJ.charAt(12) != a[12]) || (CNPJ.charAt(13) != a[13])){ return false; } return true; } /* Seta form function THFSetaCad(){ var cadform = document.getElementsByName("cadform"); document.getElementsById("nome").focus(); return (false); } */ /* ---------------------------------------------------------------------------------------------------------------------------------------------------- SITE - JANELAS / POP / MODAL / LINK ---------------------------------------------------------------------------------------------------------------------------------------------------- */ /* Janela User Ident */ function THFModalUser(acao,mlar,malt){ if(acao=="cep"){ var esquerda = (screen.width - mlar)/2; var topo = (screen.height - malt)/2; window.open('http://www.autosupervidros.com.br/form/form_busca_cep.htm','','height=' + malt + ', width=' + mlar + ', top=' + topo + ', left=' + esquerda,'toolbar:no','scrollbars:no','resizable:no'); }else{ showModal("https://www.autosupervidros.com.br/https/login.php?acao="+acao+"",mlar,malt); } } /* Janela Externa Modal */ function THFSSlModal(acao_pagina,mlar,malt){ var acao_pagina = acao_pagina; showModal(""+ acao_pagina +"",mlar,malt); } /* Janelas Externas */ function THFichaPed(id){ window.open('http://www.autosupervidros.com.br/produto_print.php?LISTA=ftroca&USELO='+id+'','_blank'); } /* Janelas Externas */ function THFPedidoBoleto(site,id){ //window.open('https://'+site+'/https/boleto/boleto_pedido.php?PID='+id+'&00141315539446433639131614614hardplus12022009','_blank'); window.open('https://www.autosupervidros.com.br/https/boleto/boleto_pedido.php?PID='+id+'&00141315539446433639131614614auto super vidros | vidros e parabrisas para automoveis.12022009','_blank'); } /* ---------------------------------------------------------------------------------------------------------------------------------------------------- FORM - POST / GET / AJAX ---------------------------------------------------------------------------------------------------------------------------------------------------- */ /* Alterar Cep */ function THFAlterarCep(){ var cadcep = document.getElementById('frmcadcep'); if (cadcep.cep.value.length == 0) { alert("INFORME O CEP DE ENTREGA!"); cadcep.cep.focus(); return false; } /* verifica se o cep é valido */ var scep = (cadcep.cep.value).replace(/\D/g,''); var tam2=(scep).length; if (!(tam2==8 || tam2==9)){ alert("INFORME UM CEP VÁLIDO!"); cadcep.cep.focus(); return false; } if (cadcep.numero.value.length == 0) { alert("INFORME O NÚMERO DE ENTREGA!"); cadcep.numero.focus(); return false; } if (cadcep.numero.value == 0 || cadcep.numero.value == 00 || cadcep.numero.value == 000 || cadcep.numero.value == 0000 || cadcep.numero.value == 00000 ) { alert("INFORME UM NÚMERO VÁLIDO!"); cadcep.numero.focus(); return false; } //return true; var novocep = cadcep.cep.value; var novonumero = cadcep.numero.value; var ajax = new AJAX(); document.getElementById('ajax_cep').style.display = "block"; //ajax.Updater("janela.php?LISTA=trocacep&acao=endereco&cep="+novocep+"&numero="+novonumero+"","ajax_cep","get","
carregando novo endereço..."); ajax.Updater("https/includes/janela_https.php?LISTA=trocacep&acao=endereco&cep="+novocep+"&numero="+novonumero+"","ajax_cep","get","
carregando novo endereço..."); } /* forma de entrega */ function THFFormaEntrega() { var cont=0; if(!document.cadform.entrega.length) if (document.cadform.entrega.checked==true) return true; for (i=0;i < document.cadform.entrega.length;i++) if (document.cadform.entrega[i].checked==true) cont++; if(cont==0) { alert('SELECIONE A OPÇÃO DE ENTREGA DESEJADA!'); return false; } return true; } /* ---------------------------------------------------------------------------------------------------------------------------------------------------- PEDIDOS - FORMA DE PAGAMENTO ---------------------------------------------------------------------------------------------------------------------------------------------------- */ /* formas pgto1 */ function THFFormaPagamentoEnvia(id_tipo) { var cont=0; if(!document.frmcompra.nparcela.length) if (document.frmcompra.nparcela.checked==true) return true; for (i=0;i < document.frmcompra.nparcela.length;i++) if (document.frmcompra.nparcela[i].checked==true) cont++; if(cont==0) { alert('SELECIONE A FORMA DE PAGAMENTO DESEJADA!'); return false; }else{ var id_tipo_pagamento = id_tipo; if(id_tipo_pagamento==1) { var ajax = new AJAX(); document.getElementById('ajxparcelas').style.display = "block"; ajax.Updater("https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=1&id_pgto=1","ajxparcelas","GET","
carregando ..."); } if(id_tipo_pagamento==2) { var url_server = document.getElementById('cp11').value; document.frmcompra.action = url_server; var pc_pagamento_id = document.getElementById('cp00').value; var pc_pagamento_parcela = document.getElementById('cp08').value; var pc_pagamento_valor = document.getElementById('cp09').value; var ajax = new AJAX(); document.getElementById('ajxparcelas').style.display = "block"; } document.frmconfirmar.action= "produto_pedido.php"; document.frmconfirmar.method="POST"; document.frmconfirmar.submit(); return true; } } /* formas pgto2 */ function THFFormaPagamentoEnviaUnica(id_tipo,npacerla,valor,total,cartao) { var id_tipo_pagamento = id_tipo; if(id_tipo_pagamento==1) { var ajax = new AJAX(); document.getElementById('ajxparcelas').style.display = "block"; ajax.Updater("https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=1&id_pgto=1","ajxparcelas","GET","
carregando ..."); } /* if(id_tipo_pagamento==2) { var url_server = document.getElementById('cp11').value; document.frmcompra.action = url_server; var pc_pagamento_id = document.getElementById('cp00').value; var pc_pagamento_parcela = document.getElementById('cp08').value; var pc_pagamento_valor = document.getElementById('cp09').value; var ajax = new AJAX(); document.getElementById('ajxparcelas').style.display = "block"; } */ if(id_tipo_pagamento==2) { var url_server = document.getElementById('cp11').value; document.frmcompra.action = url_server; var pc_pagamento_id = document.getElementById('cp00').value; var pc_pagamento_parcela = document.getElementById('cp08').value; var pc_pagamento_valor = document.getElementById('cp09').value; document.getElementById('cp00').value = cartao; document.getElementById('cp07').value = total; document.getElementById('cp08').value = npacerla; document.getElementById('cp09').value = valor; /*alert("Cartão: " + cartao + " - Nº Parcela: " + npacerla +" - Valor Parcela: "+valor+" - Total "+total);*/ var ajax = new AJAX(); document.getElementById('ajxpgto_parcelas').style.display = "block"; ajax.Updater("https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=2&id_pgto="+cartao+"&id_pgto_parcela="+npacerla+"&id_pgto_valor="+valor+"","ajxpgto_parcelas","GET","
carregando ..."); document.getElementById('ajxparcelas').style.display = "block"; } document.frmconfirmar.action= "produto_pedido.php"; document.frmconfirmar.method="POST"; document.frmconfirmar.submit(); } /* formas pgto - boleto */ function THFFormaPagamentoEnvia2(id_tipo) { var id_tipo_pagamento = id_tipo; /* alert("Boleto = "+id_tipo_pagamento); var ajax = new AJAX(); ajax.Updater("janela.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=1&id_pgto=1","ajxparcelas","GET","
carregando ..."); */ /* var ajax = new AJAX(); ajax.Updater("https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=1&id_pgto=1","ajxparcelas","GET","
carregando ..."); document.getElementById('ajxparcelas').style.display = "block"; //setInterval(THFFormaPagamentoBoletoSubmit(),50000); */ window.open('https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=1&id_pgto=1','ocultocar'); } /* formas pgto - pagseguro */ function THFFormaPagamentoEnvia3(id_tipo,valor) { window.open('https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=3&id_pgto=3&id_pgto_valor='+valor,'ocultocar'); } /* formas pgto - pagdigital */ function THFFormaPagamentoEnvia4(id_tipo,id_valor) { var id_tipo_pagamento = id_tipo; var id_valor_pagamento = id_valor; var form = document.frmcompra; v_selec = 'n'; for (i=0; i < form.meio_radio.length; i++){ if (form.meio_radio[i].checked){ v_selec = 's'; /*alert(form.meio_radio[i].value);*/ var form_vr = form.meio_radio[i].value; } } if(v_selec=="n") { alert('SELECIONE A FORMA DE PAGAMENTO DESEJADA!'); }else{ window.open('https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo='+id_tipo_pagamento+'&id_pgto='+id_tipo_pagamento+'&id_frm_pgto='+form_vr+'&id_pgto_valor='+id_valor_pagamento,'ocultocar'); } } /* formas pgto - pagmotoboy */ function THFFormaPagamentoEnvia6(id_tipo,id_valor,tipo_cartao) { var id_tipo_pagamento = id_tipo; var id_valor_pagamento = id_valor; var form = document.frmcompra; var id_parcela = document.getElementById('parcelas').value; var tipo_cartao = tipo_cartao; v_selec = 'n'; for (i=0; i < form.meio_radio.length; i++){ if (form.meio_radio[i].checked){ v_selec = 's'; /*alert(form.meio_radio[i].value);*/ var form_vr = form.meio_radio[i].value; } } if(v_selec=="n") { alert('SELECIONE A FORMA DE PAGAMENTO DESEJADA!'); }else{ window.open('https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo='+id_tipo_pagamento+'&id_pgto='+id_tipo_pagamento+'&id_frm_pgto='+form_vr+'&id_pgto_valor='+id_valor_pagamento+'&id_numero_parcela='+id_parcela+'&id_tipo_cartao='+tipo_cartao,'ocultocar'); } /*alert("Nº "+id_parcela+" - BAND: "+form_vr+" - R$: "+id_valor_pagamento+" - CARTAO: "+tipo_cartao);*/ } function THFFormaPagamento(id_pgto,tipo,valor) { var id_pgto = id_pgto; var tipo = tipo; var valor = valor; var ajax = new AJAX(); document.getElementById('ajxparcelas').style.display = "block"; ajax.Updater("https/includes/janela_https.php?LISTA=forma_pgto&acao=ajax_parcelas&id_tipo="+tipo+"&id_pgto="+id_pgto+"&id_valor="+valor+"","ajxparcelas","GET","
carregando ..."); //ajax.Updater("janela.php?LISTA=forma_pgto&acao=ajax_parcelas&id_tipo="+tipo+"&id_pgto="+id_pgto+"&id_valor="+valor+"","ajxparcelas","GET","
carregando ..."); } function THFFormaPagamentoFacilitador(id_pgto,tipo,pgto,valor) { var id_pgto = id_pgto; var tipo = tipo; var pgto = pgto; var valor = valor; var ajax = new AJAX(); document.getElementById('ajxparcelas').style.display = "block"; ajax.Updater("https/includes/janela_https.php?LISTA=forma_pgto&acao=ajax_parcelas&id_tipo="+tipo+"&id_pgto="+id_pgto+"&id_valor="+valor+"&id_forma="+pgto,"ajxparcelas","GET","
carregando ..."); /*window.open("https/includes/janela_https.php?LISTA=forma_pgto&acao=ajax_parcelas&id_tipo="+tipo+"&id_pgto="+id_pgto+"&id_valor="+valor+"&id_forma="+pgto,'_ocultocar');*/ } function THFMarcaParcela(el,valor,total,cartao) { document.getElementById('cp00').value = cartao; document.getElementById('cp07').value = total; document.getElementById('cp08').value = el.value; document.getElementById('cp09').value = valor; //alert("Cartão: " + cartao + " - Nº Parcela: " + el.value+" - Valor Parcela: "+valor+" - Total "+total); var ajax = new AJAX(); document.getElementById('ajxpgto_parcelas').style.display = "block"; ajax.Updater("https/includes/janela_https.php?LISTA=pagamento&acao=ajax_att_parcelas&id_tipo=2&id_pgto="+cartao+"&id_pgto_parcela="+el.value+"&id_pgto_valor="+valor+"","ajxpgto_parcelas","GET","
carregando ..."); } /* Sem Erros function sem_erro(){ return true;} window.onerror=sem_erro; */