//News index.html and news.html function getVote(int) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } function getVote2(int) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll2").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } //Health news index.html function getVote3(int) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll3").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } function getVote4(int) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll4").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } function getVote5(int) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll5").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } function getVote6(int) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll6").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } function getVote7(int) { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll7").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } function getVote9(int) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll9").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); } function getVote10(int) { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("poll10").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../inc/commend/poll_commend.php?vote="+int,true); xmlhttp.send(); }