// function to ensure that the comment form is correctly filled in
function checkComment() {
	var formname = document.comments;
	if (formname.newcommentauthor.value == "" || formname.newcommentbody.value == "") {
		alert("Please enter your name and a comment");
	} else {
		return true;
	}
	return false;
} // end checkComment

// function to ensure that the search form is correctly filled in
function checkSearch() {
	var formname = document.blogsearch;
	if (formname.gmsearch.value == "") {
		alert("It's a bit hazy, can't read your mind, enter something to search for!");
	} else {
		return true;
	}
	return false;
} // end checkComment
