var resetHeight = 0; function tmScrollToCoordinate() { scroll(0,0); } function resizeIframe(height) { var test = 'TEST'; var oIframeList = document.getElementsByTagName("iframe"); for (var i = 0; i < oIframeList.length; i++) { var iframe = oIframeList[i]; if (iframe.getAttribute("id") == "IframeTSE" ) { if(resetHeight==0) { resetHeight = iframe.getAttribute("height"); } if(height>resetHeight) { iframe.setAttribute("height",Math.floor(height) + 0 ); if(height>1000) { iframe.setAttribute("height",Math.floor(height) + 0 ); } } else { iframe.setAttribute("height",Math.floor(resetHeight) + 0 ); } if(window.console) { console.log(height); } } } } function ShowIframe(url, width, height) { var qstring = ""; if(document.location.search.length) { if(url.indexOf('?')>0) qstring = (url.slice(url.indexOf('?')+1) ? '&' : '')+document.location.search.slice(1); else qstring = document.location.search; } qstring = qstring.replace(/;/gi,''); var re = new RegExp("<[^>]*>.*<[^>]*>","gi"); qstring = qstring.replace(re,""); re = new RegExp("","gi"); qstring = qstring.replace(re,""); qstring = qstring.replace(/"/gi,''); qstring = qstring.replace(//gi,''); re = new RegExp("%3C[^%3E]*%3E.*%3C[^%3E]*%3E","gi"); qstring = qstring.replace(re,""); re = new RegExp("%3C/.*%3E","gi"); qstring = qstring.replace(re,""); qstring = qstring.replace(/%27/gi,''); qstring = qstring.replace(/%22/gi,''); qstring = qstring.replace(/%3E/gi,''); qstring = qstring.replace(/%3C/gi,''); qstring = qstring.replace('DBEMODE','urldbemode'); url += qstring; var st='