var objs = document.getElementById("table1").getElementsByTagName("input");
for(var i=0;i<objs.length;i++)
{
   objs[i].removeAttribute("disabled");
   objs[i].removeAttribute("readonly");
}