Index: /trunk/webapps/EInotebook/scripts/LoadEvents.js
===================================================================
--- /trunk/webapps/EInotebook/scripts/LoadEvents.js	(revision 364)
+++ /trunk/webapps/EInotebook/scripts/LoadEvents.js	(revision 368)
@@ -142,20 +142,14 @@
 // MAIN
 console.log("starting LoadEvents");
-/** Load the sim script name file and extract the filename of the Incident Script */
-loadJSON("../sim_scriptname.json", function(response)
-{
-    console.log("scriptname file loaded");
-    try {
-        var scriptnamejson = JSON.parse(response);
-        // For now the script must be located in the EInotebook folder.
-        // It would be better to use the file located in trunk/scripts folder. 
-        var scriptFilename = scriptnamejson.filename;
-        console.log("Attempting to load", scriptFilename);
-        // Now load the Incident Script and go parse it
-        loadJSON(scriptFilename, parseXml)
+try {
+    // the script must be located where accessible by the web server
+    var scriptFilename = "incident_script.xml";
+    console.log("Attempting to load", scriptFilename);
+    // Now load the Incident Script and go parse it
+    loadJSON(scriptFilename, parseXml)
 
-        } catch(e) {
-            console.log("Error attempt to parse sim_scriptname.json: "+response)
-        }
-});
+    } catch(e) {
+        console.log("Error attempt to parse incident script "+response)
+    }
 
+
