
function chrCount(FM) { 
	 if (document.commForm.Comment.value.length > 3000) { 
			 	 document.commForm.Comment.value=document.commForm.Comment.value.substr(0,2999);
	} 
	 if (document.getElementById) { 
	 		document.getElementById('countSpan').innerHTML=document.commForm.Comment.value.length; 
	}
 	 else { 
			 countSpan.innerHTML=document.commForm.Comment.value.length;
	} 
}  
	
function submitIt(theForm) {
		if (!validEntry(theForm.Name.value,2)) { 
			theForm.Name.focus();
			theForm.Name.select();
			alert("Enter a longer name, at least 2 characters.");
			return false;
		}
		if (!validEntry(theForm.Subject.value,2)) { 
			theForm.Subject.focus();
			theForm.Subject.select();
			alert("Enter a longer subject, at least 2 characters.");
			return false;
		}
		if (theForm.Email.value.length>0 && !validEmail(theForm.Email.value)) { 
			theForm.Email.focus();
			theForm.Email.select();
			alert("Please enter your valid Email address, or leave blank.");
			return false;
		}  
		if (!validEntry(theForm.Comment.value,5)) { 
			theForm.Comment.focus();
			theForm.Comment.select();
			alert("Please enter a longer comment.");
			return false;
		} 
		return true;
}