Merge pull request #1 from XOOPS/master

Update from official repo
Making counter persistent, to avoid collisions

In a case where you are layout out radio buttons in a "tray" and so creating a series of radio button elements with the same name, they would previously all get the $id_ele of 1, and so their labels and ids would all be screwed up.  This change gives them unique ids, and labels, since the counter persists across all radio buttons in a given page load.
Merge pull request #137 from jegelstaff/master

Fix ids of radio buttons inside tray