var objs = document.getElementById("table1").getElementsByTagName("input");
for(var i=0;i<objs.length;i++)
{
objs[i].removeAttribute("disabled");
objs[i].removeAttribute("readonly");
}
for(var i=0;i<objs.length;i++)
{
objs[i].removeAttribute("disabled");
objs[i].removeAttribute("readonly");
}
{
var inputs = document.getElementById(tableid).getElementsByTagName("INPUT");
for(var i=0; i<inputs.length; i++)
{
if(inputs[i].type=="text" && inputs[i].readOnly)
inputs[i].readOnly = false;
}
}