var IE6=/IE 6/; if(IE6.test(navigator.userAgent)){ if(this.style.backgroundColor == "#8000FF") this.style.backgroundColor = "#000000"; else this.style.backgroundColor = "#8000FF"; };