// JavaScript Document
function openCommentReply(itemid) {
document.getElementById(itemid).style.display = "block";
}
function openComments(itemid) {
document.getElementById(itemid).style.display = "block";
}
function closeCommentReply(itemid) {
document.getElementById(itemid).style.display = "none";
}
function closeComments(itemid) {
document.getElementById(itemid).style.display = "none";
}

function checkData(commentid) {
var problem = 'No';
	if(document.getElementById("comment_author"+commentid).value.length <= 0) {
	alert("Please enter Name or alias or something");
	problem = 'Yes';
	} else
	if(document.getElementById("comment_email"+commentid).value.length <= 0) {
	alert("Please enter Email Address");
	problem = 'Yes';
	} else
	if(document.getElementById("comment_text"+commentid).value.length <= 0) {
	alert("What? No comment?");
	problem = 'Yes';
	} else
	if(document.getElementById("spamtest"+commentid).value.length <= 0) {
	alert("C'mon, you have to do the Spam Check");
	problem = 'Yes';
	}
	if(problem == 'No') {
	return true;
	} else {
	return false;
	}
}