// JavaScript Document // JavaScript Document // JavaScript Document function setPng24(obj) { obj.width=obj.height=1; obj.className=obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" obj.src=''; return ''; } function getDocHeight(currentDoc){ var obj=null; var agentName = navigator.userAgent; var plusHeight = 0; if(agentName.indexOf("Chrome") > -1 || agentName.indexOf('Safari') > -1) { obj = currentDoc.documentElement; }else{ obj = currentDoc.body; plusHeight = 50; } if(typeof obj == 'undefinded'){ if(typeof currentDoc.body != 'undefinded'){ obj = currentDoc.body; plusHeight = 50; }else{ obj = currentDoc.documentElement; plusHeight = 0; } } return parseInt(obj.scrollHeight) + plusHeight; } function changeParentIframeHeightSize(targetDoc, currentDoc, parentFrameIdName){ targetDoc.changeIframeHeightSize(parentFrameIdName, getDocHeight(currentDoc)); }