var k = 0		
function image_reload (name, imgSrc)
 {
  tag = document.images[name];
  var x = tag.width;
  var y = tag.height;

  k++
  if (k > 2)
  {
   tag.onerror = stopLoading;

   var oops = 'The Image \'' + imgSrc + '\' has failed to load properly, if this '
   oops += 'occurs frequently please advise this site\'s webmaster.'

   alert (oops);
   return;
  }

  img = new Image (x, y);
  img.src = imgSrc;
  tag.src = img.src;

  return;
 }

function stopLoading ()
 {
  return;
 }
