For example, I want all the elements with an ID "hide_" + a value. This function must to return "hide_1" and "hide_30", etc, depending of the elements of the page.
Have a look at dollar-dollar syntax:
$$('a[id^="hide_"]')
should get you anchors whose IDs start with 'hide_'.
Most CSS3 is supported from Prototype 1.5.1 +.