This is the same as Sample001, except that the Javascript for document.write was kept external.
To know more about this possibility, click here.
Last updated: