function jh_formcheck_input_length(obj, maxlength) {
	if (obj.value.length >= maxlength) {
		alert('Die Länge der Eingabe darf maximal ' + maxlength + ' Zeichen betragen.');
		obj.value = obj.value.substring(0, maxlength);
		obj.style.className = obj.style.className + ' frmred';
	} else {
		obj.style.className = obj.style.className;
	}
}