Index: trunk/webapps/einotebook/scripts/LoadEvents.js
===================================================================
--- trunk/webapps/einotebook/scripts/LoadEvents.js	(revision 386)
+++ trunk/webapps/einotebook/scripts/LoadEvents.js	(revision 429)
@@ -85,15 +85,11 @@
                         var evalType = tagName.replace("_EVALUATION","");
                         // Build the evaluation item
-                        var facEval = new Evaluation(evalType, 
+                        var evalItem = new Evaluation(evalType, 
                                  parseEvaluation(currEvt.childNodes[child]) );  
-                        evalarray.push(facEval);
+                        evalarray.push(evalItem);
                         break;
                         
                     case "CMS_EVALUATION":
-                        // TODO: Complete this partial implementation
-                        var result = new Array();   
-                        result.push("Expected Action:");
-                        result.push("Action will appear here.");
-                        var cmsEval = new Evaluation("CMS", result);
+                        var cmsEval = new Evaluation("CMS", parseCMSEvaluation(currEvt.childNodes[child]));
                         evalarray.push(cmsEval);
                         break;
@@ -184,11 +180,33 @@
     return result;
 }
-
+function parseCMSEvaluation(element)
+{
+    var result = new Array();
+    var locations = element.getElementsByTagName("LOCATION");
+    if (locations.length > 0)
+    {
+        result.push("Sign Location:");
+        result.push(locations[0].textContent);
+    }
+    var details = element.getElementsByTagName("CMS_LINE");
+    if (details.length > 0)
+    {
+        for (detail in details)
+        {
+            if (details[detail].textContent != undefined)
+            {                
+                result.push("Sample Message:");
+                result.push(details[detail].textContent.trim());
+            }
+        }
+    }
+    return result;
+}
 // MAIN
-console.log("starting LoadEvents");
+//console.log("starting LoadEvents");
 try {
     // the script must be located where accessible by the web server
     var scriptFilename = "../dynamicdata/incident_script.xml";
-    console.log("Attempting to load", scriptFilename);
+    console.log("Attempting to load ", scriptFilename);
     // Now load the Incident Script and go parse it
     loadJSON(scriptFilename, parseXml)
