if (window.dialogArguments.pageorientation) { objectTag +="<PARAM NAME=\"PageOrientation\" VALUE=\""; objectTag += window.dialogArguments.pageorientation; objectTag += "\">";}
change it to:
if (window.dialogArguments.[b]paperorientation[/b]) { objectTag +="<PARAM NAME=\"PageOrientation\" VALUE=\""; objectTag += window.dialogArguments.paperorientation; objectTag += "\">";}
NOTE: You are only changing the javascript property name pageorientation to paperorientation, the param needs to stay the same.
Steam Community MySpace FaceBook LinkedIn Twitter BrightKite Reading List Source Code Repository