/**
 * Limits the length of a value entered into text area. 
 * @param field - the form input whose value is to be limited. 
 * @param countfield - a form input (can be hidden) to hold the remaining characters value.
 * @param maxlimit - the number of characteres to limit the value to. 
 * @return
 */ 
function textCounter(field, countfield, maxlimit) {
	 if (field.value.length > maxlimit) // if too long...trim it!
		 field.value = field.value.substring(0, maxlimit);
	 // otherwise, update 'characters left' counter
	 else 
		 countfield.value = maxlimit - field.value.length;
}

