// Textbox Character Countdown ************************
//
//    Use a <input type="text" name="remNum"> to
//		display the remaining characters.
//
// ****************************************************

function charsleft(frmName, fieldName, charLimit) {
	var fieldLength = fieldName.value.length;
	if (fieldLength > charLimit ) {
		fieldName.value = fieldName.value.substring(0, charLimit);
		charsLeft = 0;
	} else {
		charsLeft = charLimit - fieldLength;
	}
	document.forms[frmName].remNum.value = charsLeft;
}