function hideElement(id){
  document.getElementById(id).style.display="none";
}

function showElement(id){
  document.getElementById(id).style.display="block";
}

function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}
