for(i = 0; i < document.images.length; i++) {
  if(document.images[i].className == 'toplink') {
    document.images[i].onerror = function() { this.style.display = 'none'; }
  }
}
