document.write("\n");
document.write("function TAMax( ta, countspan, maxlength ) {\n");
document.write(" if (ta.value.length > maxlength){\n");
document.write(" ta.value = ta.value.substring( 0, maxlength );\n");
document.write(" ta.blur();\n");
document.write(" ta.focus();\n");
document.write(" return false;\n");
document.write(" }\n");
document.write(" else {\n");
document.write(" countspan.innerHTML = maxlength - ta.value.length;\n");
document.write(" }\n");
document.write("}\n");
document.write("\n");
document.write("
\n");