
function textLimiter(text, counter, maxLength){
	clipped = false;
	if (text.value.length > maxLength) {
		text.value = text.value.substring(0, maxLength);
		charleft = 0;
		clipped = true;
	} else {
		charleft = maxLength - text.value.length;
	}
	counter.value = charleft;
	return clipped;
}

