function test(control)
{
if (control==undefined)return false;
var thisTR = control.parentNode.parentNode;
if (thisTR.cells.length == 0) return false;
var holderID = control.id;
var holderName = control.name;
holderID = holderID.substring(0, holderID.lastIndexOf('_') + 1);
holderName = holderName.substring(0, holderName.lastIndexOf('$') + 1);
if(.....)....
}
调用:test(this);