}
else
{
document.all('byte1').innerText='输入字节数超出范围'
}
return true
}
function changebyte2(value,length){
var l=strlength(value)
if (l<=length) {
if (document.all!=null) document.all('byte2').innerText='还可以输入'+(length-l)+'字节'
}
else
{
document.all('byte2').innerText='输入字节数超出范围'
}
return true
}
</script>
<form method='post' name=test onSubmit='return checkdata()' action=''>
<TEXTAREA onkeydown='return changebyte1(document.test.icqcontent.value,198)' onkeyup='return changebyte1(document.test.icqcontent.value,198)' name=icqcontent cols=40 rows='3'></TEXTAREA>
<SPAN id=byte1><SCRIPT language=JavaScript>changebyte1(document.test.icqcontent.value,198);</SCRIPT></SPAN>
</form>
********

