Battery Bolts

When installing my battery back on the bike today, the part that the battery bolt threads into fell out and inside the bike somewhere. I heard it fall out, but didn't hear it hit the ground. After a hour of bouncing and leaning the bike I couldn't get that little square threded piece to fall out. Is there somewhere I can buy this part, or do I have to buy a new battery. The bike is an 07' so it may need a new battery soon anyway.