function getparentel (el, tagname) {
if (!el) return el;
do {
el = el.parentnode;
} while(el && el.tagname !== tagname);
return el;
}
function temp(){
//得到选中row的value值
var temp=document.getelementsbyname('id');
for(var i=0;i<temp.length;i++){
if(temp[i].checked==true){
edit=temp[i].value;
var tr = getparentel(temp[i], 'tr');
var tds = tr.cells;
for (var j = 0; j < tds.length; j++) {
var tdinner = tds[j].innerhtml;
alert(tdinner);
}
}
}
}