You can tell if it's a 6 or 12 volt by the number of cells; each cell is 2 volts, so a 6 volt battery will have 3 cells to top up with distilled water and a 12 volt one will have 6 cells. Many modern 12 volt batteries are sealed, so if you have NO cells to open on the top of the battery, it's probably a 12 volt one.
Whatever you do, DON'T connect the wrong one! Pictures of the old one on the forum will allow someone to confirm for definite which voltage you need.