document.write("
"); var myEventMethod = window.addEventListener ? "addEventListener" : "attachEvent"; var myEventListener = window[myEventMethod]; var myEventMessage = myEventMethod == "attachEvent" ? "onmessage" : "message"; myEventListener(myEventMessage, function (e) { if (e.data === parseInt(e.data)) {myedataAMS=e.data;document.getElementById('amsframe').style.height = e.data + "px"; document.getElementById('amsframediv').style.height = e.data + "px"; } }, false);