document.write('
'); tusencuestas_addEvent_206284198163552731(window,'load',tusencuestas_inicializacion_206284198163552731,false); var accion_extra_206284198163552731 = '0'; var P_Id_206284198163552731 = '62'; var Perfil_Id_206284198163552731 = '45'; function tusencuestas_inicializacion_206284198163552731() { tusencuestas_accion_206284198163552731(4, 0); } function tusencuestas_mostrar_206284198163552731() { tusencuestas_accion_206284198163552731(1, 0); } function tusencuestas_verVotos_206284198163552731() { tusencuestas_accion_206284198163552731(3, 0); } function tusencuestas_verListado_206284198163552731() { tusencuestas_accion_206284198163552731(5, 0); } function tusencuestas_verEncuesta_206284198163552731(_P_Id) { P_Id_206284198163552731 = _P_Id; tusencuestas_accion_206284198163552731(4, 0) } function tusencuestas_accion_206284198163552731(accion_nombre, accion_argumento) { if (accion_argumento != "-1") { accion_argumento += ";" + accion_extra_206284198163552731; var act = document.createElement("script"); act.src = 'http://www.tusencuestas.com/acciones/tusencuestas.aspx?'+P_Id_206284198163552731 +'-'+ Perfil_Id_206284198163552731 + '-' + accion_nombre + '-' + accion_argumento + '-206284198163552731-1-'+hasVotado_206284198163552731()+'&i=' + tusencuestas_random_206284198163552731(); act.setAttribute('language', 'javascript'); act.setAttribute('type', 'text/javascript'); document.body.appendChild(act); } } function tusencuestas_votar_206284198163552731() { if (cookieHabilitada_206284198163552731()) { var accion_argumento = tusencuestas_recogeValor_206284198163552731(); tusencuestas_accion_206284198163552731(2, accion_argumento); if (accion_argumento != "-1") { var expira = new Date(); expira.setSeconds(expira.getSeconds() + 3600); setCookie_206284198163552731("P_Id" + P_Id_206284198163552731, "1", expira, "/"); } else alert('��Elige una respuesta!!'); } else alert('No puedes votar porque no tienes las cookies habilitadas'); } function tusencuestas_recogeValor_206284198163552731() { var tusencuestas_elemento = document.getElementsByName('tusencuestas_respuesta_resultados_name_206284198163552731'); var accion_argumento = -1; var contador = 0; for (i = 0; i < tusencuestas_elemento.length; i++) { if (tusencuestas_elemento[i].type == 'select-one') accion_argumento = tusencuestas_elemento[i].options[tusencuestas_elemento[i].selectedIndex].value; else if (tusencuestas_elemento[i].checked) { if (accion_argumento == -1) accion_argumento = ""; if (contador>0) accion_argumento += "_" + tusencuestas_elemento[i].value; else accion_argumento += tusencuestas_elemento[i].value; contador++; } } return accion_argumento; } function tusencuestas_random_206284198163552731() { var dt = new Date(); var ran=Math.random()*400; return dt.getTime() + '-' + ran; } function hasVotado_206284198163552731() { return getCookie_206284198163552731("P_Id" + P_Id_206284198163552731)!=null ? 1 : 0; } function cookieHabilitada_206284198163552731() { var r = tusencuestas_random_206284198163552731(); setCookie_206284198163552731(r,"1"); return getCookie_206284198163552731(r)!=null; } function setCookie_206284198163552731(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function getCookie_206284198163552731(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else begin += 2; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } function tusencuestas_addEvent_206284198163552731(elm, evType, fn, useCapture) { if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.attachEvent('on' + evType, fn); return r; } else elm['on' + evType] = fn; }