function keepAlive() { var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(840000); }); /*=== EASY GOOGLE ANALYTICS : START TRACKING CODE ===*/ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-59201960-1', 'cmppr.com.br'); ga('send', 'pageview'); /*=== EASY GOOGLE ANALYTICS : END TRACKING CODE ===*/ /*=== EASY GOOGLE ANALYTICS : START OUTBOUND LINKS ===*/ function trackOutboundLink(link, category, action) { try { var blank = 'inline'; if (link.getAttribute('target') == '_blank') { blank = 'blank'; } ga('send', 'event', category, action, blank, {'hitCallback': function() { var patt=/youtube|youtu\.be/i; if (!patt.test(action)) { if (blank == 'blank') { window.open(action, '_blank'); } else { document.location = action; } } } }); } catch(err){ if (window.console) { console.error(err); } } } /*=== EASY GOOGLE ANALYTICS : END OUTBOUND LINKS ===*/ /*=== EASY GOOGLE ANALYTICS : START FIXING LINKS ===*/ window.addEvent('domready', function(){ $$('a[href^="http"]:not([href*="' + document.domain + '"])').each(function(el){ el.addEvent('click', function(){ trackOutboundLink(this, 'Outbound Links', el.getProperty('href')); return false; }); }); }); /*=== EASY GOOGLE ANALYTICS : END FIXING LINKS ===*/
Joomla.submitbutton = function(pressbutton) { var form = document.getElementById('mailtoForm'); // do field validation if (form.mailto.value == "" || form.from.value == "") { alert('Por favor, informe um e-mail válido.'); return false; } form.submit(); }

Envie este link a um amigo.