document.getElementsByTagName('a')[1].className = document.getElementsByTagName('a')[1].className.replace("redtext" + i, " ");