function sendComment() { 
	username = $("#username").val();
	email = $("#email").val();
	comment = $("#comment").val();
	//comment = htmlspecialchars(comment);
	postid =$("#postid").val();
	
	new Ajax.Request("/includes/comments.php", { method: 'post',  postBody: "username="+username+"&email="+email+"&comment="+comment+"&postid="+postid,  onComplete: CommentResponse }); 
}

function CommentResponse(req) { 
	//$('Comments').innerHTML =  req.responseText; 
	$('#Comments').html(req.responseText);
}

function htmlspecialchars(p_string) {
	p_string = p_string.replace(/&/g, '&amp;');
//	p_string = p_string.replace(/</g, '&lt;');
//	p_string = p_string.replace(/>/g, '&gt;');
	p_string = p_string.replace(/"/g, '&quot;');
//	p_string = p_string.replace(/'/g, '&#039;');
	return p_string;
};