Corrected to support FireFox and Internet Explorer