Java Script HELP

I inherited a SL course that contain a scene (I've attached a copy) that has the learner fill out a form, print it, and then upload it to a Sharepoint site. I get an access denied error when I try to run it. Could someone please take a look at the code below and provide me with some guidance. I'm clueless when it comes to Java Script.

Thanks much,

Jim

 

var popupWindow = null;
function centeredPopup(url,winName,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
popupWindow = window.open(url,winName,settings)
}
var newWin=centeredPopup('print/print.html','Freddie Mac - What You Can Do','650','815','yes');

1 Reply