function zfResizeFormIframe(diffHght,iframeScrollReset){if(isOneFieldForm())try{var isSubformShown=!1,sfPopup=document.getElementById("subFormPopUp");if(sfPopup)if("block"==window.getComputedStyle(sfPopup).display){var sfCloseLink=document.getElementById("sFPopUpCloseLink");"block"==window.getComputedStyle(sfCloseLink).display&&(isSubformShown=!0)}var iFrameHeight=0;if(document.querySelector(".slide.activeSlide")&&(document.querySelector(".slide.activeSlide").querySelector("div[elname=livefield-elem]")?(iFrameHeight=document.querySelector(".slide.activeSlide").querySelector("div[elname=livefield-elem]").offsetHeight,$(document.body).hasClass("verticalNavType")&&(iFrameHeight+=100)):document.querySelector(".slide.activeSlide").querySelector(".fieldWrapper")&&(iFrameHeight=document.querySelector(".slide.activeSlide").querySelector(".fieldWrapper").offsetHeight),isBannerLayoutForm()&&isMobileMediaWindow()&&(iFrameHeight+=150),iFrameHeight+=$("#progressBarDiv").length>0&&$("#progressBarDiv").is(":visible")?$("#progressBarDiv").outerHeight(!0):0),isSubformShown){var popupHeightPre=0,ifrmHeightPre=0;if(document.getElementById("subFormPopUp")){var sfPopupDiv=document.getElementById("subFormPopUp"),sfPopupCont=sfPopupDiv.querySelector("div[id=sFPopUpElem]");if(sfPopupCont.getBoundingClientRect().height?popupHeightPre=sfPopupCont.getBoundingClientRect().height:sfPopupCont.offsetHeight&&(popupHeightPre=sfPopupCont.offsetHeight),sfPopupDiv.querySelector("ul[elname=sfPopUpHeader]")){var sfPpHdr=sfPopupDiv.querySelector("ul[elname=sfPopUpHeader]");sfPpHdr.getBoundingClientRect().height?popupHeightPre+=sfPpHdr.getBoundingClientRect().height:sfPpHdr.offsetHeight&&(popupHeightPre+=sfPpHdr.offsetHeight)}if(sfPopupDiv.querySelector("ul[elname=footer]")){var sfFooter=sfPopupDiv.querySelector("ul[elname=footer]");sfFooter.getBoundingClientRect().height?popupHeightPre+=sfFooter.getBoundingClientRect().height:sfFooter.offsetHeight&&(popupHeightPre+=sfFooter.offsetHeight)}}if(ifrmHeightPre=iFrameHeight,document.getElementById("topBar"))(hdrDiv=document.getElementById("topBar")).getBoundingClientRect().height?ifrmHeightPre+=hdrDiv.getBoundingClientRect().height:hdrDiv.offsetHeight&&(ifrmHeightPre+=hdrDiv.offsetHeight);if(document.getElementById("footerBar"))(footerDiv=document.getElementById("footerBar")).getBoundingClientRect().height?ifrmHeightPre+=footerDiv.getBoundingClientRect().height:footerDiv.offsetHeight&&(ifrmHeightPre+=footerDiv.offsetHeight);if(popupHeightPre+diffHght+1000?$(formMainWrapper).find("div[elname=pageBannerWrapper]").outerHeight(!0):0;rootElem.getBoundingClientRect().height?iFrameHeight=rootElem.getBoundingClientRect().height:rootElem.offsetHeight&&(iFrameHeight=rootElem.offsetHeight);message=formPerma+"|"+(iFrameHeight=iFrameHeight+diffHght+formHeaderHeight+formBannerHeight);iframeScrollReset&&(message+="|scroll"),parent.postMessage(message,"*")}catch(error){}else try{formPerma=document.getElementById("formPerma").value,iFrameHeight=500;document.body.getBoundingClientRect().height?iFrameHeight=document.body.getBoundingClientRect().height:document.body.offsetHeight&&(iFrameHeight=document.body.offsetHeight);message=formPerma+"|"+(iFrameHeight+=diffHght);iframeScrollReset&&(message+="|scroll"),parent.postMessage(message,"*")}catch(error){}}function zfResizeFormIframeToFixed(fixedHght){try{var formPerma=document.getElementById("formPerma").value;parent.postMessage(formPerma+"|"+fixedHght,"*")}catch(error){}}function zfResizeFormIframeToFixedHeight(formPerma,fixedHght){try{parent.postMessage(formPerma+"|"+fixedHght,"*")}catch(error){}}