function validateFormOnSubmit()
{

	if (document.commentform.author.value == '')
	{
		alert('Name cannot be blank.');
		return false;
	}

	if (document.commentform.body.value == '')
	{
		alert('Comment cannot be blank.');
		return false;
	}

	if (document.commentform.int1.value == '')
	{
		alert('Code cannot be blank.');
		return false;
	}

	return true;

}
