function isLoadedImage( obj ) {
	if (!obj.complete) {
		return false;
	}
	if ( typeof obj.naturalWidth != "undefined" && obj.naturalWidth == 0 ) {
		return false;
	}

    return true;
}

function checkImage() {
	for ( var i = 0; i < document.images.length; i++ ) {
		if ( !isLoadedImage( document.images[ i ] ) ) {
			document.images[ i ].style.visibility = "hidden";
		}
	}
};
myWindow.doAddOnloadListener( checkImage );