<!--
var minHeight = 425;
function IFrameResize(ID){
	parent.document.getElementById("pltsTipLayer").innerHTML = "";
	parent.document.getElementById("pltsTipLayer").style.top = "0px";
	window.setInterval("reinitIframe('" + ID + "')", 10);
}

function IFrameResize_1(ID_1, ID_2){
	parent.parent.document.getElementById("pltsTipLayer").innerHTML = "";
	parent.parent.document.getElementById("pltsTipLayer").style.top = "0px";
	window.setInterval("reinitTopIframe('" + ID_1 + "', '" + ID_2 + "')", 10);
	parent.parent.document.documentElement.scrollTop = "0px";
}

function reinitIframe(ID){
    var obj = parent.document.getElementById(ID);
    try{
		var bHeight = obj.contentWindow.document.body.scrollHeight;
		var dHeight = obj.contentWindow.document.documentElement.scrollHeight;
		var height = Math.max(bHeight, dHeight);
		var thisPageHeight =  height;
		if(thisPageHeight < minHeight){
	    	thisPageHeight = minHeight;
	    }
	    obj.style.height = thisPageHeight + "px";
	}catch (ex){}
}

function reinitTopIframe(ID_1, ID_2){
//	top.document.documentElement.scrollTop = '0px';
    var obj_1 = parent.parent.document.getElementById(ID_1);
    var obj_2 = parent.document.getElementById(ID_2);
    try{
		var bHeight = obj_2.contentWindow.document.body.scrollHeight;
		var dHeight = obj_2.contentWindow.document.documentElement.scrollHeight;
		var height = Math.max(bHeight, dHeight);
		var thisPageHeight =  height;
		if(thisPageHeight < minHeight){
	    	thisPageHeight = minHeight;
	    }
	    obj_2.style.height = thisPageHeight + "px";
	    obj_1.style.height = thisPageHeight + "px";
	}catch (ex){}
    
}

function iframeFitHeight(oIframe)
{
    try
    {
        var oWin = oIframe.name ? window.frames[oIframe.name] : oIframe.contentWindow; 
        oIframe.style.height = oWin.document.body.scrollHeight + "px";
        parent.parent.document.documentElement.scrollTop = "0px";
    }
    catch(e){}
}
//-->
