
function votecom(idis,way){
		xmlhttpPost2('/votecom.php?idis='+idis+'&way='+way+'',idis);
}

function xmlhttpPost2(strURL,rowis) {
 	var xmlHttpReq = false;
	var self = this;
	// Mozilla/Safari
	if (window.XMLHttpRequest) {
		self.xmlHttpReq = new XMLHttpRequest();
	}
	// IE
	else if (window.ActiveXObject) {
		self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	self.xmlHttpReq.open('GET', strURL, true);
	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	self.xmlHttpReq.onreadystatechange = function() {
		updatecom(self.xmlHttpReq.responseText,rowis);
		}
	self.xmlHttpReq.send('');
}
 
 
function updatecom(str,rowis){
		document.getElementById("comdivfade"+rowis).innerHTML = str; 
}
