Index: js/rd.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_scorm/js/rd.js,v
retrieving revision 1.1
diff -u -p -r1.1 rd.js
--- js/rd.js	3 Sep 2010 09:22:39 -0000	1.1
+++ js/rd.js	15 Feb 2011 08:49:24 -0000
@@ -19,7 +19,6 @@ You should have received a copy of the G
 along with this program as the file LICENSE.txt; if not, please see
 http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
 */
-<!--
 function scorm_get_element_style(obj, prop, cssProp) {
     var ret = '';
     
@@ -112,15 +111,16 @@ function scorm_resize (cwidth, cheight) 
 	if (contenti3) {
     	contenti3.style.height = (winheight - totalheight + 30) + 'px';
 	} else {
-	   document.getElementById('content').style.height = (finalheight + 30) + 'px';
-    }
+    if(document.getElementById('content'))
+      document.getElementById('content').style.height = (finalheight + 30) + 'px';
+  }
      // resize the content container too to move the footer below the SCORM content
     var contenti3 = document.getElementById('content-i3');
     if (contenti3) {
         contenti3.style.height = (finalheight + 30) + 'px';
     } else {
+      if( document.getElementById('content') )
         document.getElementById('content').style.height = (finalheight + 30) + 'px';
     }
  
-}
--->
\ No newline at end of file
+}
\ No newline at end of file
