// Error handler for Images that doesn't load for some reason (from Image.aspx)
// - handler should be attached inline on the img elements (XSLT-generated) like this:
// 			<img src="..." onerror="retryImage(this)" />
function retryImage(img) {
	if (img.src.indexOf("retry=yes") == -1) { // Makes sure we only try once more (and not endlessly loop)
		img.src += ((img.src.indexOf('?') == -1 ? '?' : '&') + "retry=yes");
	}
}
