The loadXMLDoc() function below is a cross-browser script stored in a file called "loadxmldoc.js".
The function is loaded with the <script type="text/javascript" src="loadxmldoc.js"> tag in the <head> section in our examples: