phutisemenya 0 Newbie Poster

hi, guys.
i need a code that works like this one but using table row instead of option.
thanks

function RightButton_OnClick()
{
	var AvailableLB = document.getElementById("selection");
	var LinkedLB = document.getElementById("selected");
	for (var i=0; i < AvailableLB.length; i++) 
	{
		if (AvailableLB.options[i].selected == true) 
		{
			LinkedLB.options[LinkedLB.length] = new Option(AvailableLB.options[i].text,AvailableLB.options[i].value,AvailableLB.options[i].focus(),AvailableLB.options[i].selected);
			AvailableLB.options[i] = null;
			i=i-1;
		}
	}
	return;
}