Index: trunk/webapps/einotebook/script/simscript.js
===================================================================
--- trunk/webapps/einotebook/script/simscript.js	(revision 468)
+++ trunk/webapps/einotebook/script/simscript.js	(revision 548)
@@ -70,4 +70,6 @@
 	}
 	
+    // Add a submit button to the very bottom 
+    html += "<button style=\"float: right\" onclick=\"collectRatings();\">Submit Ratings</button>"
 	// display events in iframe
 	getDocumentFromFrame('view').body.innerHTML = html;	
@@ -76,7 +78,7 @@
 	resizeIframe();
 	window.onresize = resizeIframe;
-    // This line is causing an error
-	//window.frames['view'].setEvents(Script.events);
-	
+    // Pass the events to the scroll frame window
+	document.getElementById("view").contentWindow.setEvents(Script.events);
+    
 	Script.events.win.scrollTo(0, readCookie('scriptScrollY'));
 	
