function comment()
{
	var n = document.getElementById('comment_name').value;
	var c = document.getElementById('comment_text').value;
	
	if (n.length == 0 || c.length == 0)
	{
		alert('Please enter both a name and a comment.');
		return false;
	}
	
	if (c.toLowerCase().indexOf('<a ') > -1 || c.toLowerCase().indexOf('[url') > -1)
	{
		alert('Sorry, you may not post HTML in comments.');
		return false;
	}
	return true;
}
