<!-- Begin

function validate_commentform() {

	if (trimString(document.commentform.name.value) == "")
	{
		alert("Please include your name or pseudonym.");
		return;
	}
	if (trimString(document.commentform.email.value) == "")
	{
		alert("Please include your email address (For verification purposes only. Your email address will not be re-sold or re-distributed in any way, shape matter or form).");
		return;
	}
	if (trimString(document.commentform.city.value) == "")
	{
		alert("Please include your city.");
		return;
	}
	if (document.commentform.country.value == "United States")
	{
		if (trimString(document.commentform.state.value) == "")
		{
			alert("Please select your U.S. state.");
			return;
		}
	}
	if (trimString(document.commentform.commenttitle.value) == "")
	{
		alert("Please include a comment title.");
		return;
	}
	if (trimString(document.commentform.comment.value) == "")
	{
		alert("Please provide content for your comment.");
		return;
	}
	if (trimString(document.commentform.comment.value).length > 1000)
	{
		alert("Please limit comment to 300 characters or less");
		return;
	}

	if (trimString(document.commentform.antispam.value) == "")
	{
		alert("Please enter the antispam code.");
		return;
	}

	var valid_antispam_characters = "0123456789AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789";
	
	var antispam_ok = "yes";
	var temp;
	for (var i=0; i<document.commentform.antispam.value.length; i++) {
	temp = "" + document.commentform.antispam.value.substring(i, i+1);
	if (valid_antispam_characters.indexOf(temp) == "-1") antispam_ok = "no";
	}
	if (antispam_ok == "no") {
		alert("Invalid antispam code. Please re-enter the antispam code.");
	return;
	}
	 
	document.getElementById('commentform_submit').innerHTML = "<span class=\"errormessage\">Request processing, please wait ...</span>";
	document.commentform.submit();

}


// ********************************************************************************
// ********************************************************************************
function AdjustStateValue() {
// ********************************************************************************
// ********************************************************************************

	if (document.commentform.country.value == "United States") {
		document.getElementById("USStateRequired").innerHTML = "<b>*</b>";
	} else {
		document.getElementById("USStateRequired").innerHTML = "&nbsp;";
	}

// ********************************************************************************
// ********************************************************************************
}
// ********************************************************************************
// ********************************************************************************


//  End -->

