Foam around treble units/ tweeters


My speakers have foam - maybe 1/4 inch thick around the treble/ tweeter units.

Foam is getting old and some fell off.  The foam is about 6 by 6 inches and 1/4 inch thick.

Any idea of what type of material to use to replace the foam?  What is it used for?

Thank you.

dcaudio