
function ismaxlength(obj, len) {
	if(obj.getAttribute && obj.value.length > len) {
		obj.value = obj.value.substring(0, len);
	}
}

