COMPRAS EMPRESAS

Últimas Notícias

CONTATOS

UNIDADE ASA SUL

Email: Ouvidoria CMDP II

Fones: 3298 8876 | 3298-8886

UNIDADE 2 TAGUATINGA

Email: Ouvidoria CMDP II

Fones: 3193 0129

LOCALIZAÇÃO ASA SUL

LOCALIZAÇÃO UNIDADE 2

document.addEventListener('DOMContentLoaded', function() { const form = document.querySelector('.elementor-form'); if (form) { form.addEventListener('submit', function() { const protocoloField = form.querySelector('[name="form_fields[protocolo]"]'); const now = new Date(); const protocolo = 'PROTO-' + now.getFullYear() + ('0'+(now.getMonth()+1)).slice(-2) + ('0'+now.getDate()).slice(-2) + '-' + Math.floor(1000 + Math.random() * 9000); if (protocoloField) { protocoloField.value = protocolo; } }); } });