+function OnMessage (event) {\r
+ var message = event.data;\r
+ var destination = window.parent.parent;\r
+ destination.XDTMaster.read( [ 'end', message, 'fpm' ] ) ;\r
+}\r
+\r
+function listenPostMessage() {\r
+ if (window.addEventListener) { // all browsers except IE before version 9\r
+ window.addEventListener ("message", OnMessage, false);\r
+ }else {\r
+ if (window.attachEvent) { // IE before version 9\r
+ window.attachEvent("onmessage", OnMessage);\r
+ }\r
+ }\r
+}\r
+\r