/**
 * Reasserts the <code>maxlength</code> field of an object (e.g., a <code>textarea</code>).
 * @param	obj	Object (e.g., a <code>textarea</code>) to check the <code>maxlength</code> of
 */ 
function checkMaxlength(obj) {
	var maxlength = obj.getAttribute ? parseInt(obj.getAttribute("maxlength")) : "";
	//window.alert(String(obj) + "length/maxlength = " + obj.value.length + "/" + maxlength)
	if (obj.getAttribute && obj.value.length > maxlength) {
		obj.value = obj.value.substring(0, maxlength)
	}
}
