function loadCommentWriter(idArticles, uidComments, queryString) {
    loadXMLDoc('/xmlhttprequest/loadCommentWriter.php?idArticles='+idArticles+'&uidComments='+uidComments, 'POST', queryString);
}

function sendCommentWriter(queryString, idArticles, uidComments) {
    loadXMLDoc('/xmlhttprequest/sendCommentWriter.php?idArticles='+idArticles+'&uidComments='+uidComments, 'POST', queryString);
}

function closeCommentWriter(idDiv) {
    document.getElementById(idDiv).innerHTML = '';
}

function sendArticleRating(idArticles, rating, queryString) {
    loadXMLDoc('/xmlhttprequest/sendArticleRating.php?idArticles='+idArticles+'&rating='+rating, 'POST', queryString);
}

function selectRating(rating) {
    document.getElementById('postMetaStars').className = 'starsHover'+rating;
}

var show = false;

function toggleBookmarks() {
	if(show) {
		document.getElementById('socialBookmarks').style.display = "none";
		show = false;
	}
	else {
		document.getElementById('socialBookmarks').style.display = "block";
		show = true;
	}
}
