<!--
function FormValidation(theForm)
{
	// check the author address 
	if (theForm.author.value == "") {
		alert ('Please fill in Name field.') 
		// if the browser is Netscape 6 or IE
		if(document.all || document.getElementByID)
		{
			// change the color of text field
			theForm.author.style.background = "yellow";
		}
		// make sure the form is not submitted
		return false;
	}
	
	// check the email address 
	if (theForm.email.value == "") {
		alert ('Please fill in Email field.') 
		// if the browser is Netscape 6 or IE
		if(document.all || document.getElementByID)
		{
			// change the color of text field
			theForm.email.style.background = "yellow";
		}
		// make sure the form is not submitted
		return false;
	}


	// check the comments
	if (theForm.comments.value == "") {
		alert ('Please fill in Comments field.') 
		// if the browser is Netscape 6 or IE
		if(document.all || document.getElementByID)
		{
			// change the color of text field
			theForm.comments.style.background = "yellow";
		}
		// make sure the form is not submitted
		return false;
	}

	return (true);	


} /*end of function*/

function textCounter(field, maxlimit) {
	if (field.value.length > 2000){ 
		field.value = field.value.substring(0, 2000);		
		alert('No more than 2000 characters, please!')
	}
}

function hideMybutton(){
	comments_form.post.style.visibility="hidden";
	alert("Thank-you for making a submission to our blog. All submissions are screened for spam before they are published. Please click 'OK' then wait while your information is processed.");
}

// -->

