This post is just here to hold the sources for the latest version of the image preview JavaScript code. I moved the code out of some generic files that hold a bunch of other JavaScript code and CSS data, and into files specific to the image preview page. The older posts about this subject are HERE and HERE.

The test page for previewing images before they are uploaded, is here.