I don't have time right now but there is a close tag command, I bet that can be modified to do a select? if it can find the previoud tag, then find the closing tag for that one, select in between...........