The
replays variable is an array (a list/collection) of all matches, so you must loop through them, and change the style of one at the time. Something like this FOR loop:
CODE
for(var i=0; i<replays.length; i++)
{
replays[i].style.display='none';
}
(every time the loop is run, the value of
i is increased by 1, for the whole length of the array).
If you know you only have a fixed small number of elements with the className "replay", you could skip the loop and instead do something like:
CODE
replays[0].style.display='none';
replays[1].style.display='none';
replays[2].style.display='none';
(the first item in an array has the index number 0).