<html>
<script type="text/javascript" language="javascript">
function ismaxlength(obj)
{
alert(obj.value.length);
var mlength=obj.getAttribute ? parseInt(obj.getAttribute("maxlength")) : "";
if (obj.getAttribute && obj.value.length>mlength)
{
obj.value=obj.value.substring(0,mlength)
}
}
function imposeMaxLength(obj)
{
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "";
if(obj.value.length >= mlength)
{
obj.value=obj.value.substring(0,mlength)
}
if(obj.value.length >512)
{
document.getElementById("show1024").value = obj.value.length;
}
else
{
document.getElementById("show512").value = obj.value.length;
}
}
</script>
<div>
<span style="width:480px;float:left;" ><input type="text" > fs </textarea>
</span>
</div>
</html>