function ismaxlength(obj){
var mlength= 4000
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}