function checkLength(which,remainderNum,maxChars) { if (which.value.length > maxChars) which.value = which.value.substring(0,maxChars); var curr = maxChars - which.value.length; document.getElementById(remainderNum).innerHTML = curr.toString(); }
function checkLength(which,remainderNum,maxChars) { if (which.value.length > maxChars) which.value = which.value.substring(0,maxChars); var curr = maxChars - which.value.length; document.getElementById(remainderNum).innerHTML = curr.toString(); }