Index: trunk/webapps/einotebook/script/scrollframe.html
===================================================================
--- trunk/webapps/einotebook/script/scrollframe.html	(revision 468)
+++ trunk/webapps/einotebook/script/scrollframe.html	(revision 468)
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<!-- This is an internal frame that contains the formatted XML from the incident script -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <link href="scrollframe.css" rel="stylesheet" type="text/css">
+    <script type="text/javascript" src="scrollframe.js"></script> 
+    <script type="text/javascript" src="../scripts/cookies.js"></script> 
+</head>
+  <body onscroll="setCookie('scriptScrollY', window.pageYOffset);">
+  </body>
+</html>
Index: trunk/webapps/einotebook/script/scrollframe.css
===================================================================
--- trunk/webapps/einotebook/script/scrollframe.css	(revision 468)
+++ trunk/webapps/einotebook/script/scrollframe.css	(revision 468)
@@ -0,0 +1,186 @@
+@CHARSET "UTF-8";
+
+body {
+	font-family: Verdana, sans-serif;	
+}
+
+/*=========================== Event =======================*/
+
+button.eventExpandButton {
+	width:2em;	
+	text-align:center;
+	font-size:12pt;
+}
+
+table.event {
+	padding:0px; 
+	border:0px solid black;
+	width:100%;
+	border-collapse:collapse;
+	margin-bottom:30px;
+}
+
+table.eventHeader {
+	width:100%;
+}
+
+td.eventHeader {
+	margin-bottom:0px; 
+	border:2px solid gray;	
+}
+
+td.eventData {
+	padding-left:2em;
+}
+
+tr.eventHeader {
+	font-size:medium; 
+	font-weight:bold;
+}
+
+td.eventTitle {
+	text-align:left;
+	width:40%
+}
+
+td.eventExpandOption {
+	text-align:left;
+	width:10%
+}
+
+td.eventNumber {
+	text-align:left;
+	width:20%
+}
+
+td.eventTime {
+	text-align:left;
+	width:30%
+}
+
+/*=============================== Evaluation ======================*/
+
+table.evaluation {
+	border:0px solid black;
+	margin-bottom:0px;
+	width:100%;
+}
+
+table.evaluationInner2
+{
+	width:100%;
+}
+
+th.evaluationType {
+	text-align:left;
+	font-size:11pt;
+}
+
+td.evaluationLabel {
+	padding-left:2em;
+	font-style:italic;
+	font-size:11pt;
+	vertical-align:top;
+}
+
+td.evaluationCriteria {
+	text-align:left;
+	font-size:11pt;
+}
+
+td.evaluationResponse {
+	padding-left:1em;
+	width:100%;
+	
+}
+
+input.evaluationResponseText {
+	width:100%;	
+}
+
+table.evaluationScale {
+	
+}
+
+td.evaluationScale {
+	font-size:12px;
+}
+
+td.evaluationRadioButtonSmallScale {
+	padding-right:1em; 
+	padding-left:1em;
+	text-align:center;
+}
+	
+/*=============================== Evaluations ======================*/
+
+button.evaluationsExpandButton {
+	width:27px;	
+	text-align:center;
+	font-size:10pt;
+}
+
+table.evaluationsInner {
+	border:0px solid black;
+	width:100%;	
+}
+
+table.evaluationsOuter {
+	border:0px solid black;
+	width:100%;	
+}
+
+td.evaluationsExpandOption {
+	font-size:12pt;
+}
+
+td.evaluations {
+	padding-left:2em;
+}
+
+/*=============================== Properties ======================*/
+
+button.propertiesExpandButton {
+	width:2em;	
+	text-align:center;
+	font-size:10pt;
+}
+
+td.propertiesExpandOption {
+	font-size:12pt;
+}
+
+td.properties {
+	padding-left:2em;
+}
+
+/*=============================== Property ======================*/
+
+table.property {
+	border:0px solid black;
+	margin-bottom:-5px;
+}
+
+th.propertyType {
+	font-size:11pt;
+	text-align:left;
+}
+
+td.propertyContent {
+	padding-left:2em;
+	font-style:italic;
+	font-size:11pt;
+}
+
+td.propertyLabel {
+	font-size:11pt;
+	padding-left:2em; 
+	padding-right:1em;
+	font-style:italic;
+	vertical-align:top;
+}
+
+td.propertyValue {
+	padding-left:1em;
+	font-size:11pt;
+}
Index: trunk/webapps/einotebook/script/scrollframe.js
===================================================================
--- trunk/webapps/einotebook/script/scrollframe.js	(revision 468)
+++ trunk/webapps/einotebook/script/scrollframe.js	(revision 468)
@@ -0,0 +1,12 @@
+/************* WARNING: THIS IS A GLOBAL VARIABLE. ********************/
+// Reference to the 'events' array in Events.js
+var events;
+
+/**
+ * Sets the events.
+ * @param theEvents Reference to the 'events' array in Events.js.
+ */
+function setEvents(theEvents)
+{
+	events = theEvents;
+}
Index: trunk/webapps/einotebook/script/simscript.css
===================================================================
--- trunk/webapps/einotebook/script/simscript.css	(revision 468)
+++ trunk/webapps/einotebook/script/simscript.css	(revision 468)
@@ -0,0 +1,33 @@
+@CHARSET "UTF-8";
+
+body {
+	font-family: Verdana, sans-serif;	
+}
+
+/*=============================== Button Panel ======================*/
+
+button.expandButton {
+	width:100px;
+}
+
+button.collapseButton {
+	width:100px;
+}
+
+input.timeText {
+	padding-left:0px; 
+	padding-right:0px; 
+	margin-left:0px; 
+	margin-right:0px;  
+	width:1.5em;
+}
+
+td.buttonPanel {
+	padding:1px;
+}
+
+table.buttonTable
+{
+	margin:0px;
+	padding:0px;
+}
Index: trunk/webapps/einotebook/script/simscript.js
===================================================================
--- trunk/webapps/einotebook/script/simscript.js	(revision 468)
+++ trunk/webapps/einotebook/script/simscript.js	(revision 468)
@@ -0,0 +1,190 @@
+/**
+ * Holds references to the events and incidents.
+ */
+function Script()
+{
+	Script.events = null;
+	Script.incidents = null;
+}
+
+/**
+ * Scrolls to the last event executed based on time.
+ */
+function jumpToLastExecutedEvent()
+{	
+	var lastEventArray = Script.events.getLastExecutedEvent(readCookie("time"));
+
+	// IF a current event exists THEN
+	if (lastEventArray != null)
+	{
+        // Move window focus to first event of the current ones
+        var last = lastEventArray.length - 1;
+	    lastEventArray[last].focus();
+	}
+	else
+	{
+		alert("No events have been executed yet.");
+	}
+}
+
+/**
+ * Finds the Event that was last executed by based on time and highlights it.
+ * Removes highlighting from old events.
+ * @return
+ */
+function highlightLatestEvent() 
+{
+    Script.events.setEmphasis();  // Set text colors on all events
+
+    var currentEventArray = Script.events.getLastExecutedEvent(readCookie("time"));
+	/* highlight the items in the current event array */
+    for (var i=0; i<currentEventArray.length; i++) 
+    {
+		currentEventArray[i].highlight();
+	}
+
+    // Set timer to do this again in one second
+	setTimeout("highlightLatestEvent()", 1000);
+}
+
+/**
+ * Loads the the script tab for the given document.
+ * @pre script.html must be completely loaded
+ * @param aDocument
+ */
+function loadScript(theEvents, theIncidents)
+{
+	Script.incidents = theIncidents;
+	Script.events = theEvents;
+	Script.events.win = document.getElementById("view").contentWindow;
+	Script.events.doc = getDocumentFromFrame('view');
+
+	var html = "";
+	
+	// FOR each Event
+	for (var i = 0; i < Script.events.length; i++)
+	{
+		// add the Event's html
+		html += Script.events[i].html();
+        //console.log(Script.events[i].html());
+	}
+	
+	// display events in iframe
+	getDocumentFromFrame('view').body.innerHTML = html;	
+	
+	// resize iframe to appropriate height
+	resizeIframe();
+	window.onresize = resizeIframe;
+    // This line is causing an error
+	//window.frames['view'].setEvents(Script.events);
+	
+	Script.events.win.scrollTo(0, readCookie('scriptScrollY'));
+	
+	highlightLatestEvent();
+
+}
+
+/**
+ * @param id The id of the frame element.
+ * @return The document of the frame element.
+ */
+function getDocumentFromFrame(id)
+{
+    var frame=document.getElementById(id);
+    var doc=(frame.contentWindow || frame.contentDocument);
+    
+    if (doc.document)doc=doc.document;
+    
+    return doc;
+}
+
+/**
+ * Finds the height of an element relative to the BODY tag.
+ * @param elem The element to find the height of.
+ * @return The y-coordinate of the given element relative to the BODY tag.
+ */
+function pageY(elem) 
+{
+    return elem.offsetParent ? (elem.offsetTop + pageY(elem.offsetParent)) : elem.offsetTop;
+}
+
+/**
+ * Resizes the view for the events so that the view's height is at the bottom of its
+ * container.
+ */
+function resizeIframe() 
+{
+    var height = document.documentElement.clientHeight;
+    height -= pageY(document.getElementById('view'));
+    height = (height < 0) ? 0 : height - 10;
+    document.getElementById('view').style.height = height + 'px';
+}
+
+/**
+ * Highlights the text of an input text element after a small delay.
+ * This method was made because using the code "onFocus='this.focus()'" did not work.
+ * @pre textField must have an 'id' attribute
+ * @param textField An input text element.
+ */
+function highlightTextField(textField)
+{
+	setTimeout("document.getElementById('" + textField.id + "').select();", 100);
+}
+
+/**
+ * Formats a two digit textbox. If the text box contains only one digit, then a zero
+ * is appended to the front.
+ * @param textField An input text element.
+ */
+function formatTimeTextfield(textField)
+{
+	// IF the text field contains 1 digits THEN
+	if (textField.value.length == 1)
+	{
+		textField.value = "0".concat(textField.value);
+	}
+}
+
+/**
+ * Scrolls to the event latest executed event if the current simulation time was given
+ * by text fields 'timeTextSeconds', 'timeTextMinutes', 'timeTextHours'.
+ */
+function jumpToTime()
+{
+	var seconds = parseInt(document.getElementById('timeTextSeconds').value, 10);
+	var minutes = parseInt(document.getElementById('timeTextMinutes').value, 10);
+	var hours = parseInt(document.getElementById('timeTextHours').value, 10);
+
+	var lastEvent = Script.events.getLastExecutedEvent(new Time(hours, minutes, seconds).getSeconds());
+
+	// IF an event was executed THEN
+	if (lastEvent != null)
+	{
+		lastEvent.focus();
+	}
+}
+
+/**
+ * Collapses the elements based on the value of the dropdownbox with id 'domain'.
+ */
+function collapse()
+{
+	var selection = document.getElementById('domain');
+	var selectedIndex = selection.selectedIndex;
+	var selectedValue = selection.options[selectedIndex].value;
+	
+	eval("Script.events.collapseAll" + selectedValue + "();");
+}
+
+/**
+ * Expands the elements based on the value of the dropdownbox with id 'domain'.
+ */
+function expand()
+{
+	var selection = document.getElementById('domain');
+	var selectedIndex = selection.selectedIndex;
+	var selectedValue = selection.options[selectedIndex].value;
+	
+	eval("Script.events.expandAll" + selectedValue + "();");
+}
+
Index: trunk/webapps/einotebook/script/index.html
===================================================================
--- trunk/webapps/einotebook/script/index.html	(revision 468)
+++ trunk/webapps/einotebook/script/index.html	(revision 468)
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
+  "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <!-- This is the page containing the simulation script and jump button -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <link href="simscript.css" rel="stylesheet" type="text/css">
+    <script type="text/javascript" src="../scripts/Time.js"></script> 
+    <script type="text/javascript" src="simscript.js"></script> 
+    <script type="text/javascript" src="../scripts/cookies.js"></script>
+    <title>Script</title>
+  </head>
+  <body>
+   
+    <button class="jumpToCurrentEvent" 
+            onclick="jumpToLastExecutedEvent()">Jump to Current Event</button>
+     
+    <iframe id='view' src='scrollframe.html' frameborder='0' scrolling='yes'
+            width='100%'></iframe>
+  </body>
+</html>
Index: trunk/webapps/einotebook/script/script.html
===================================================================
--- trunk/webapps/einotebook/script/script.html	(revision 359)
+++ 	(revision )
@@ -1,33 +1,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
-  "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <link href="script.css" rel="stylesheet" type="text/css">
-    <script type="text/javascript" src="../scripts/Time.js"></script> 
-    <script type="text/javascript" src="script.js"></script> 
-    <script type="text/javascript" src="../scripts/cookies.js"></script>
-    <title>Script</title>
-  </head>
-  <body>
-    Filter:
-    <select id='domain'>
-      <option value=''>All</option>
-      <option value='chpradio'>CHP RADIO</option>
-      <option value='chpcad'>CHP CAD</option>
-      <option value='telephone'>TELEPHONE CONVERSATION</option>
-    </select>
-<!--
-    <button onclick="collapse();">Collapse</button>
-    <button onclick="expand();">Expand</button>
--->
-   
-    <button class="jumpToCurrentEvent" 
-            onclick="jumpToLastExecutedEvent()">Jump to Current Event</button>
-     
-
-
-    <iframe id='view' src='scripts.html' frameborder='0' scrolling='yes'
-            width='100%'></iframe>
-  </body>
-</html>
Index: trunk/webapps/einotebook/script/scripts.html
===================================================================
--- trunk/webapps/einotebook/script/scripts.html	(revision 359)
+++ 	(revision )
@@ -1,13 +1,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <link href="scripts.css" rel="stylesheet" type="text/css">
-    <script type="text/javascript" src="scripts.js"></script> 
-    <script type="text/javascript" src="../scripts/cookies.js"></script> 
-  <title>Insert title here</title>
-</head>
-  <body onscroll="setCookie('scriptScrollY', window.pageYOffset);">
-
-  </body>
-</html>
Index: trunk/webapps/einotebook/script/script.css
===================================================================
--- trunk/webapps/einotebook/script/script.css	(revision 359)
+++ 	(revision )
@@ -1,33 +1,0 @@
-@CHARSET "UTF-8";
-
-body {
-	font-family: Verdana, sans-serif;	
-}
-
-/*=============================== Button Panel ======================*/
-
-button.expandButton {
-	width:100px;
-}
-
-button.collapseButton {
-	width:100px;
-}
-
-input.timeText {
-	padding-left:0px; 
-	padding-right:0px; 
-	margin-left:0px; 
-	margin-right:0px;  
-	width:1.5em;
-}
-
-td.buttonPanel {
-	padding:1px;
-}
-
-table.buttonTable
-{
-	margin:0px;
-	padding:0px;
-}
Index: trunk/webapps/einotebook/script/scripts.css
===================================================================
--- trunk/webapps/einotebook/script/scripts.css	(revision 359)
+++ 	(revision )
@@ -1,186 +1,0 @@
-@CHARSET "UTF-8";
-
-body {
-	font-family: Verdana, sans-serif;	
-}
-
-/*=========================== Event =======================*/
-
-button.eventExpandButton {
-	width:2em;	
-	text-align:center;
-	font-size:12pt;
-}
-
-table.event {
-	padding:0px; 
-	border:0px solid black;
-	width:100%;
-	border-collapse:collapse;
-	margin-bottom:30px;
-}
-
-table.eventHeader {
-	width:100%;
-}
-
-td.eventHeader {
-	margin-bottom:0px; 
-	border:2px solid gray;	
-}
-
-td.eventData {
-	padding-left:2em;
-}
-
-tr.eventHeader {
-	font-size:medium; 
-	font-weight:bold;
-}
-
-td.eventTitle {
-	text-align:left;
-	width:40%
-}
-
-td.eventExpandOption {
-	text-align:left;
-	width:10%
-}
-
-td.eventNumber {
-	text-align:left;
-	width:20%
-}
-
-td.eventTime {
-	text-align:left;
-	width:30%
-}
-
-/*=============================== Evaluation ======================*/
-
-table.evaluation {
-	border:0px solid black;
-	margin-bottom:0px;
-	width:100%;
-}
-
-table.evaluationInner2
-{
-	width:100%;
-}
-
-th.evaluationType {
-	text-align:left;
-	font-size:11pt;
-}
-
-td.evaluationLabel {
-	padding-left:2em;
-	font-style:italic;
-	font-size:11pt;
-	vertical-align:top;
-}
-
-td.evaluationCriteria {
-	text-align:left;
-	font-size:11pt;
-}
-
-td.evaluationResponse {
-	padding-left:1em;
-	width:100%;
-	
-}
-
-input.evaluationResponseText {
-	width:100%;	
-}
-
-table.evaluationScale {
-	
-}
-
-td.evaluationScale {
-	font-size:12px;
-}
-
-td.evaluationRadioButtonSmallScale {
-	padding-right:1em; 
-	padding-left:1em;
-	text-align:center;
-}
-	
-/*=============================== Evaluations ======================*/
-
-button.evaluationsExpandButton {
-	width:27px;	
-	text-align:center;
-	font-size:10pt;
-}
-
-table.evaluationsInner {
-	border:0px solid black;
-	width:100%;	
-}
-
-table.evaluationsOuter {
-	border:0px solid black;
-	width:100%;	
-}
-
-td.evaluationsExpandOption {
-	font-size:12pt;
-}
-
-td.evaluations {
-	padding-left:2em;
-}
-
-/*=============================== Properties ======================*/
-
-button.propertiesExpandButton {
-	width:2em;	
-	text-align:center;
-	font-size:10pt;
-}
-
-td.propertiesExpandOption {
-	font-size:12pt;
-}
-
-td.properties {
-	padding-left:2em;
-}
-
-/*=============================== Property ======================*/
-
-table.property {
-	border:0px solid black;
-	margin-bottom:-5px;
-}
-
-th.propertyType {
-	font-size:11pt;
-	text-align:left;
-}
-
-td.propertyContent {
-	padding-left:2em;
-	font-style:italic;
-	font-size:11pt;
-}
-
-td.propertyLabel {
-	font-size:11pt;
-	padding-left:2em; 
-	padding-right:1em;
-	font-style:italic;
-	vertical-align:top;
-}
-
-td.propertyValue {
-	padding-left:1em;
-	font-size:11pt;
-}
Index: trunk/webapps/einotebook/script/script.js
===================================================================
--- trunk/webapps/einotebook/script/script.js	(revision 418)
+++ 	(revision )
@@ -1,190 +1,0 @@
-/**
- * Holds references to the events and incidents.
- */
-function Script()
-{
-	Script.events = null;
-	Script.incidents = null;
-}
-
-/**
- * Scrolls to the last event executed based on time.
- */
-function jumpToLastExecutedEvent()
-{	
-	var lastEventArray = Script.events.getLastExecutedEvent(readCookie("time"));
-
-	// IF a current event exists THEN
-	if (lastEventArray != null)
-	{
-        // Move window focus to first event of the current ones
-        var last = lastEventArray.length - 1;
-	    lastEventArray[last].focus();
-	}
-	else
-	{
-		alert("No events have been executed yet.");
-	}
-}
-
-/**
- * Finds the Event that was last executed by based on time and highlights it.
- * Removes highlighting from old events.
- * @return
- */
-function highlightLatestEvent() 
-{
-    Script.events.setEmphasis();  // Set text colors on all events
-
-    var currentEventArray = Script.events.getLastExecutedEvent(readCookie("time"));
-	/* highlight the items in the current event array */
-    for (i=0; i<currentEventArray.length; i++) 
-    {
-		currentEventArray[i].highlight();
-	}
-
-    // Set timer to do this again in one second
-	setTimeout("highlightLatestEvent()", 1000);
-}
-
-/**
- * Loads the the script tab for the given document.
- * @pre script.html must be completely loaded
- * @param aDocument
- */
-function loadScript(theEvents, theIncidents)
-{
-	Script.incidents = theIncidents;
-	Script.events = theEvents;
-	Script.events.win = document.getElementById("view").contentWindow;
-	Script.events.doc = getDocumentFromFrame('view');
-
-	var html = "";
-	
-	// FOR each Event
-	for (var i = 0; i < Script.events.length; i++)
-	{
-		// add the Event's html
-		html += Script.events[i].html();
-        //console.log(Script.events[i].html());
-	}
-	
-	// display events in iframe
-	getDocumentFromFrame('view').body.innerHTML = html;	
-	
-	// resize iframe to appropriate height
-	resizeIframe();
-	window.onresize = resizeIframe;
-    // This line is causing an error
-	//window.frames['view'].setEvents(Script.events);
-	
-	Script.events.win.scrollTo(0, readCookie('scriptScrollY'));
-	
-	highlightLatestEvent();
-
-}
-
-/**
- * @param id The id of the frame element.
- * @return The document of the frame element.
- */
-function getDocumentFromFrame(id)
-{
-    var frame=document.getElementById(id);
-    var doc=(frame.contentWindow || frame.contentDocument);
-    
-    if (doc.document)doc=doc.document;
-    
-    return doc;
-}
-
-/**
- * Finds the height of an element relative to the BODY tag.
- * @param elem The element to find the height of.
- * @return The y-coordinate of the given element relative to the BODY tag.
- */
-function pageY(elem) 
-{
-    return elem.offsetParent ? (elem.offsetTop + pageY(elem.offsetParent)) : elem.offsetTop;
-}
-
-/**
- * Resizes the view for the events so that the view's height is at the bottom of its
- * container.
- */
-function resizeIframe() 
-{
-    var height = document.documentElement.clientHeight;
-    height -= pageY(document.getElementById('view'));
-    height = (height < 0) ? 0 : height - 10;
-    document.getElementById('view').style.height = height + 'px';
-}
-
-/**
- * Highlights the text of an input text element after a small delay.
- * This method was made because using the code "onFocus='this.focus()'" did not work.
- * @pre textField must have an 'id' attribute
- * @param textField An input text element.
- */
-function highlightTextField(textField)
-{
-	setTimeout("document.getElementById('" + textField.id + "').select();", 100);
-}
-
-/**
- * Formats a two digit textbox. If the text box contains only one digit, then a zero
- * is appended to the front.
- * @param textField An input text element.
- */
-function formatTimeTextfield(textField)
-{
-	// IF the text field contains 1 digits THEN
-	if (textField.value.length == 1)
-	{
-		textField.value = "0".concat(textField.value);
-	}
-}
-
-/**
- * Scrolls to the event latest executed event if the current simulation time was given
- * by text fields 'timeTextSeconds', 'timeTextMinutes', 'timeTextHours'.
- */
-function jumpToTime()
-{
-	var seconds = parseInt(document.getElementById('timeTextSeconds').value, 10);
-	var minutes = parseInt(document.getElementById('timeTextMinutes').value, 10);
-	var hours = parseInt(document.getElementById('timeTextHours').value, 10);
-
-	var lastEvent = Script.events.getLastExecutedEvent(new Time(hours, minutes, seconds).getSeconds());
-
-	// IF an event was executed THEN
-	if (lastEvent != null)
-	{
-		lastEvent.focus();
-	}
-}
-
-/**
- * Collapses the elements based on the value of the dropdownbox with id 'domain'.
- */
-function collapse()
-{
-	var selection = document.getElementById('domain');
-	var selectedIndex = selection.selectedIndex;
-	var selectedValue = selection.options[selectedIndex].value;
-	
-	eval("Script.events.collapseAll" + selectedValue + "();");
-}
-
-/**
- * Expands the elements based on the value of the dropdownbox with id 'domain'.
- */
-function expand()
-{
-	var selection = document.getElementById('domain');
-	var selectedIndex = selection.selectedIndex;
-	var selectedValue = selection.options[selectedIndex].value;
-	
-	eval("Script.events.expandAll" + selectedValue + "();");
-}
-
Index: trunk/webapps/einotebook/script/scripts.js
===================================================================
--- trunk/webapps/einotebook/script/scripts.js	(revision 359)
+++ 	(revision )
@@ -1,12 +1,0 @@
-/************* WARNING: THIS IS A GLOBAL VARIABLE. ********************/
-// Reference to the 'events' array in Events.js
-var events;
-
-/**
- * Sets the events.
- * @param theEvents Reference to the 'events' array in Events.js.
- */
-function setEvents(theEvents)
-{
-	events = theEvents;
-}
