var HTML = ""; document.write(HTML); var eventMethod_CM = window.addEventListener ? "addEventListener" : "attachEvent"; var eventer_CM = window[eventMethod_CM]; var messageEvent_CM = eventMethod_CM == "attachEvent" ? "onmessage" : "message"; eventer_CM(messageEvent_CM,function(e) { var temp = e.data.split("|"); var H = parseInt(temp[1]) + 0; var frame_id = "BB_Frame_CM"; if(document.getElementById(frame_id)){ document.getElementById(frame_id).style.height = H + "px"; } },false);