function galerie_hlas(galerie,hlas){
  var xmlhttp=false; //Clear our fetching variable
  try{
  	xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
  }
  catch (e){
  	try {
  		xmlhttp = new
  		ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
  	}
  	catch (E) {
  		xmlhttp = false;
  	}
  }
  
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  	xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
  }

	xmlhttp.open('GET','galerie_hlasuj.php?galerie='+galerie+'&hlas='+hlas, true); //Open the file through GET, and add the id we want to retrieve as a GET variable
	xmlhttp.onreadystatechange=function() {
	if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
		var content = xmlhttp.responseText; //The content data which has been retrieved
		
		
		//	content=content.replace('y',''); //Get rid of the y infront of our result *
			document.getElementById('stav_hodnoceni').innerHTML = "XXX";
      document.getElementById('stav_hodnoceni').innerHTML = content; //Set the inner HTML of the div with the old value in it to the new value **
		
	}
	}
xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}
