// JavaScript Document function set_CyberAndorraCookie(cookie_val) { var date = new Date(); date.setTime(date.getTime() + (30 * 60 * 1000)); document.cookie = "CyberAndorra=" + cookie_val + "; expires=" + date.toGMTString() + "; path=/"; } function get_CyberAndorraCookie() { var nameEQ = "CyberAndorra="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } if(get_CyberAndorraCookie() == null) { url = 'http://www.cyberandorra.com/collector.php?lang=es&ref=' + encodeURIComponent(document.referrer) + '&req=' + encodeURIComponent(document.URL); document.write(''); set_CyberAndorraCookie(encodeURIComponent(document.referrer)); }