function formCheck(commentForm) {	var okay = true;	var error = "Please correct the following errors and try again:\n";	if (commentForm.elements[0].value == "" &&		commentForm.elements[1].value == "") {		error += "\n- Both a name and an email address are required to post a comment.";		okay = false;		}	else if (commentForm.elements[0].value == "") {		error += "\n- A name is required to post a comment.";		okay = false;			}	else if (commentForm.elements[1].value == "") {		error += "\n- An email address is required to post a comment.";		okay = false;		}	if (commentForm.elements[1].value != "" &&
		(commentForm.elements[1].value.lastIndexOf("@") == -1 ||		commentForm.elements[1].value.lastIndexOf(".") == -1)) {		error += "\n- The email address you provided is not valid. Your email address will not be displayed or sold, and is only needed so the author can contact you. Please enter a valid address.";		okay = false;		}	if (commentForm.elements[2].value != "" &&
		commentForm.elements[2].value != "http://" &&
		(commentForm.elements[2].value.indexOf("http://") == -1 ||		commentForm.elements[2].value.lastIndexOf(".") == -1)) {		error += "\n- The website URL you provided is not valid. If you don't have a website, please leave this field blank.";		okay = false;		}	if (commentForm.elements[3].value == "") {		error += "\n- You seem to have left the comment field blank. Please enter a comment.";		okay = false;		}	if (!okay)		alert(error);
	if (commentForm.elements[2].value == "http://")
		commentForm.elements[2].value = "";	return okay;}