function send_comment(id) {
var c1 = document.getElementById('commentor').value;
var c2 = document.getElementById('comment').value;

	if (c2 == '') {
	alert('Yorum yaziniz.');
	return false;
	}
	else {
	var xmlHttpReq = false;
	var self = this;
		
		if (window.XMLHttpRequest) {
		self.xmlHttpReq = new XMLHttpRequest();
		}
			
		else if (window.ActiveXObject) {
		self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
	
	self.xmlHttpReq.open('POST', 'messenger.php?mode=comment', true);
	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	self.xmlHttpReq.onreadystatechange = function() {

	
			if (self.xmlHttpReq.readyState == 4) {
			document.getElementById('comments').innerHTML = self.xmlHttpReq.responseText;
			}

		}

	qstr = 'id='+id+'&commentor='+encodeURIComponent(escape(c1))+'&comment='+encodeURIComponent(escape(c2));
	self.xmlHttpReq.send(qstr);
	}
	
}

