// Counts the number of characters in a field, and alerts to the maximum allowed.
// By Jamie Hamel-Smith
function countField(input_name,report_id,max_count) {
var current_count = input_name.value.length;
var report = document.getElementById(report_id);
	if(current_count > max_count) { // There are too many characters.
	report.innerHTML = current_count + ' of ' + max_count + ' used. (too long)';
	report.style.color = '#FF0000';
	}
	else { // Everything is OK.
	report.innerHTML = current_count + ' of ' + max_count + ' used.';
	report.style.color = '#000000';
	}
}
