<SCRIPT for=window event=onload> var sourceDoc = xmldso.XMLDocument; sourceDoc.load("contactdb.xml"); if (sourceDoc.documentNode == null) { // Place error handling routine here } </SCRIPT>