CONTACTENOS

0 años 1 a 3 años 4 a 8 años 9 a 13 años 14 a 20 años +21 años
function handleFormSubmit(ele) { var submitButton = ele.querySelector('input[type=submit]'); var spinner = document.createElement('span'); spinner.setAttribute('class', 'loader'); submitButton.setAttribute('disabled', true); submitButton.style.cursor = 'wait'; submitButton.parentNode.appendChild(spinner); return true; } function resetSubmitButton(e){ var submitButtons = e.target.form.getElementsByClassName('submit-button'); for(var i=0;i<submitButtons.length;i++){ submitButtons[i].disabled = false; } } function addChangeHandler(elements){ for(var i=0; i<elements.length; i++){ elements[i].addEventListener('change', resetSubmitButton); } } var form = document.getElementById('form525'); addChangeHandler(form.getElementsByTagName('input')); addChangeHandler(form.getElementsByTagName('select')); addChangeHandler(form.getElementsByTagName('textarea')); var nodes = document.querySelectorAll('#form525 input[data-subscription]'); if (nodes) { for (var i = 0, len = nodes.length; i < len; i++) { var status = nodes[i].dataset ? nodes[i].dataset.subscription : nodes[i].getAttribute('data-subscription'); if(status ==='true') { nodes[i].checked = true; } } }; var nodes = document.querySelectorAll('#form525 select[data-value]'); if (nodes) { for (var i = 0; i < nodes.length; i++) { var node = nodes[i]; var selectedValue = node.dataset ? node.dataset.value : node.getAttribute('data-value'); if (selectedValue) { for (var j = 0; j < node.options.length; j++) { if(node.options[j].value === selectedValue) { node.options[j].selected = 'selected'; break; } } } } } this.getParentElement = function(list) { return list[list.length-1].parentElement}; var dom0 = document.querySelector('#form525 #fe4360'); var fe4360 = new LiveValidation(dom0, { validMessage: "", onlyOnBlur: false, wait: 300} ); fe4360.add(Validate.Custom, { against: function(value) { return !value.match(/(telnet|ftp|https?):\/\/(?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.|[a-z0-9]\.)+[a-z]{2,63}/i); } , failureMessage: "Value must not contain any URL's"} ); fe4360.add(Validate.Custom, { against: function(value) { return !value.match(/(]+)>)/ig); } , failureMessage: "Value must not contain any HTML"} ); fe4360.add(Validate.Length, { tooShortMessage:"Invalid length for field value", tooLongMessage: "Invalid length for field value", minimum: 0, maximum: 35} ); fe4360.add(Validate.Presence, { failureMessage:"Campo obligatorio"} ); var dom1 = document.querySelector('#form525 #fe4361'); var fe4361 = new LiveValidation(dom1, { validMessage: "", onlyOnBlur: false, wait: 300} ); fe4361.add(Validate.Custom, { against: function(value) { return !value.match(/(telnet|ftp|https?):\/\/(?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.|[a-z0-9]\.)+[a-z]{2,63}/i); } , failureMessage: "Value must not contain any URL's"} ); fe4361.add(Validate.Custom, { against: function(value) { return !value.match(/(]+)>)/ig); } , failureMessage: "Value must not contain any HTML"} ); fe4361.add(Validate.Length, { tooShortMessage:"Invalid length for field value", tooLongMessage: "Invalid length for field value", minimum: 0, maximum: 35} ); fe4361.add(Validate.Presence, { failureMessage:"Campo obligatorio"} ); var dom2 = document.querySelector('#form525 #fe4362'); var fe4362 = new LiveValidation(dom2, { validMessage: "", onlyOnBlur: false, wait: 300} ); fe4362.add(Validate.Presence, { failureMessage:"Campo obligatorio"} ); fe4362.add(Validate.Format, { pattern: /(^[A-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~][A-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~\.]{0,62}@(([A-Z0-9](?:[A-Z0-9\-]{0,61}[A-Z0-9])?)(\.[A-Z0-9](?:[A-Z0-9\-]{0,61}[A-Z0-9])?)+)$)/i, failureMessage: "A valid email address is required"} ); fe4362.add(Validate.Format, { pattern: /\.\.|\.@/i, failureMessage: "A valid email address is required", negate: "true"} ); var dom3 = document.querySelector('#form525 #fe4363'); var fe4363 = new LiveValidation(dom3, { validMessage: "", onlyOnBlur: false, wait: 300} ); fe4363.add(Validate.Custom, { against: function(value) { return !value.match(/(telnet|ftp|https?):\/\/(?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.|[a-z0-9]\.)+[a-z]{2,63}/i); } , failureMessage: "Value must not contain any URL's"} ); fe4363.add(Validate.Custom, { against: function(value) { return !value.match(/(]+)>)/ig); } , failureMessage: "Value must not contain any HTML"} ); fe4363.add(Validate.Length, { tooShortMessage:"Invalid length for field value", tooLongMessage: "Invalid length for field value", minimum: 0, maximum: 35} ); fe4363.add(Validate.Presence, { failureMessage:"Campo obligatorio"} ); var dom4 = document.querySelector('#form525 #fe4364'); var fe4364 = new LiveValidation(dom4, { validMessage: "", onlyOnBlur: false, wait: 300} ); fe4364.add(Validate.Custom, { against: function(value) { return !value.match(/(telnet|ftp|https?):\/\/(?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.|[a-z0-9]\.)+[a-z]{2,63}/i); } , failureMessage: "Value must not contain any URL's"} ); fe4364.add(Validate.Custom, { against: function(value) { return !value.match(/(]+)>)/ig); } , failureMessage: "Value must not contain any HTML"} ); fe4364.add(Validate.Presence, { failureMessage:"Campo obligatorio"} ); var dom5 = document.querySelector('#form525 #fe4365'); var fe4365 = new LiveValidation(dom5, { validMessage: "", onlyOnBlur: false, wait: 300} ); fe4365.add(Validate.Presence, { failureMessage:"Campo obligatorio"} ); var dom6 = document.querySelector('#form525 #fe4366'); var fe4366 = new LiveValidation(dom6, { validMessage: "", onlyOnBlur: false, wait: 300} ); fe4366.add(Validate.Custom, { against: function(value) { return !value.match(/(]+)>)/ig); } , failureMessage: "Value must not contain any HTML"} );