/***************************************************************
*  Copyright notice
*
*  (c) 2008 Frenck Lutke (http://ceer.nl/)
*	@ Cronnet (http://cronnet.com/)
*  	@ Borderline Insane Technologies
*  All rights reserved
*
*  This script is part of the function library of Frenck Lutke.
*  This script is free to use and distribute, as long as this
*  copryright notice remains included to indicate the creative
*  ownership and a means of contact to its creator for if so
*  desired. Earning profit directly by selling this script is
*  exclusive only to Frenck Lutke and the listed companies.
*  
*  If this script was sold to you through a company not listed
*  above, and that company does not feature Frenck Lutke as an
*  affiliate: please notify Frenck Lutke by contacting him
*  through http://ceer.nl/
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

//in need of error handling?
function objectMaxLength(o){
	var maxLength = parseInt(o.getAttribute("maxlength"));
	if (o.value.length > maxLength) {
		o.value = o.value.substring(0,maxLength);
	}
}
