Visual Basic (3539)
This article has not been rated yet. After reading, feel free to leave comments and rate it.
The second snippet assumes that you have a separate file named 'shared_code.js' in your www root directory and each participating HTML file just includes this file. That way you need to change only one file (/shared_code.js)