added .attachEvent() for IEold