/** * 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