// JavaScript Document
function getwrite_sermon()
{
	document.commentSermon.action = 'sermon/sermon_submit.php';
	document.commentSermon.yourName.name = 'sermonName';
	document.commentSermon.yourEmail.name = 'sermonEmail';
	document.commentSermon.yourMsg.name = 'sermonMsg';
}

function check_fields()
{
	if (document.commentSermon.yourName.value == '')
	{	alert('Please enter your name.');
		document.commentSermon.yourName.focus();
		return false;
	}
	else if (document.commentSermon.yourMsg.value == '')
		{	alert('Please type your message.');
			document.commentSermon.yourMsg.focus();
			return false;
		}
	else getwrite_sermon();
}
