var browserVersion = window.navigator.userAgent.toUpperCase(); var isOpera = false; var isFireFox = false; var isChrome = false; var isSafari = false; var isIE = false; var iframeTime; function reinitIframe(iframeId, minHeight) { try { var height = $(window.document.body).height(); if (height < minHeight) { height = minHeight; } $(top.document.body).find("#frmright").height(height+30); } catch (ex) { } } function startInit(iframeId, minHeight) { isOpera = browserVersion.indexOf("OPERA") > -1 ? true : false; isFireFox = browserVersion.indexOf("FIREFOX") > -1 ? true : false; isChrome = browserVersion.indexOf("CHROME") > -1 ? true : false; isSafari = browserVersion.indexOf("SAFARI") > -1 ? true : false; if (!!window.ActiveXObject || "ActiveXObject" in window) isIE = true; reinitIframe(iframeId, minHeight); if (iframeTime != null) clearInterval(iframeTime); iframeTime = window.setInterval("reinitIframe('" + iframeId + "'," + minHeight + ")", 500); } $(function(){ startInit("frmright",450); window.setTimeout("clearInterval(iframeTime)", 5000); });