


function golos(numberr, id, chto, category, mesto) {


var reqa;
if (window.XMLHttpRequest) reqa = new XMLHttpRequest(); 
else if (window.ActiveXObject) {
try {
reqa = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e){}
try {
reqa = new ActiveXObject('Microsoft.XMLHTTP');
} catch (e){}
}







if (reqa) {

reqa.onreadystatechange = function() {




if (reqa.readyState == 4 && reqa.status == 200)  { 


document.getElementById(mesto).innerHTML = reqa.responseText;












}
};  

reqa.open("POST", 'reitingplus/histori-anekdoti-aforizmi.php', true);
reqa.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
reqa.send('numberr='+numberr+'&id='+id+'&chto='+chto+'&category='+category+'&mesto='+mesto);




} 
else alert("Браузер не поддерживает AJAX");














}





