ÿØÿà }Š form.msg.value.length;
}
if(isIE4) { document.all.counter.innerText=max-datalen; }
if(isNS4) { form.counter.value=max-datalen; }
document.form.submittype.value=0
}
}
function Keychange(form) {
var data=form.msg.value;
var datalen=data.length;
var isChinese=checkchinese(data);
if(isChinese) var max=60; else var max=120;
if(datalen > max) {
form.msg.value=data.substr(0,max);
datalen=form.msg.value.length;
}
if(isIE4) { document.all.counter.innerText=max-datalen; }
if(isNS4) { form.counter.value=max-datalen; }
}
function readonly(form) {
var data=form.msg.value;
var datalen=data.length;
var isChinese=checkchinese(data);
if(isChinese) var max=60; else var max=120;
if(datalen > max) {
form.msg.value=data.substr(0,max);
datalen=form.msg.value.length;
}
form.counter.value=max-datalen;
}
¡¡
| |