function votio_getHTTPObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != "undefined") { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } var votio_http = votio_getHTTPObject(); function votio_handleHttpResponse() { if(votio_http.readyState == 4) { var s = votio_http.responseText; var res = s.split(","); var id = res[0]; var index = res[1]; var message = res[2]; var textmsg = document.createTextNode(message); var votediv = document.getElementById('votediv_' + id); votediv.removeChild(votediv.firstChild); votediv.appendChild(textmsg); for(z=1;z<=5;z++) { i = document.getElementById("star_" + id + "_" + z); if(z<=index) usei = "http://marquepages.soissons.free.fr/wp-content/plugins/votio/star1.gif"; else usei = "http://marquepages.soissons.free.fr/wp-content/plugins/votio/star0.gif"; i.setAttribute("src", usei); i.setAttribute("onmouseover", null); i.setAttribute("onmouseout", null); } } } function votio_getCookie(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 votio_vote(id, index) { var boleen; votioCookie=votio_getCookie("votio"); if(votioCookie) { myarray=votioCookie.split(","); for(var i=0;i