function getInputList(trId){
var returnList = new Array();
var inputList = document.getElementsByTagName("INPUT");
for (var i=0;i<inputList.length;i++){
if (inputList[i].parentNode.parentNode.id==trId) returnList.push(inputList[i]);
}
alert(returnList.length+"个input");
return returnList;
}
</script>