﻿function iFrameCorrectSize(b) { var a = getBodyHeight(b.contentWindow.document); if (a) { b.style.height = a + "px" } } function iFrameOpenLinksOnTop(d) { var g = new Poly9.URLParser(d.src); var f = g.getPathname(); var a; if (d.contentWindow.location) { a = d.contentWindow.location.pathname } if (a && a != "/blank" && a != f) { d.contentWindow.document.body.style.display = "none"; top.location.href = d.contentWindow.location.href } else { var b = d.contentWindow.document.getElementsByTagName("a"); for (var c = 0; c < b.length; c++) { var e = b[c]; if (e.href.indexOf("javascript:") == -1) { if (!e.onclick) { e.onclick = function() { top.location.href = this.href } } } } } } function getBodyHeight(d) { var a; var c; var b; if (d.height) { a = d.height } else { if (d.body) { if (d.body.scrollHeight) { a = c = d.body.scrollHeight } if (d.body.offsetHeight) { a = b = d.body.offsetHeight } if (c && b) { a = Math.max(c, b) } } } return a };