function chgSize() {
var h =(document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight || window.innerHeight);
var w = (document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth || window.innerWidth);
var d = document.getElementById('iframe');//ifame为DIV的ID
d.style.marginTop = border +"px";
d.style.marginLeft = border +"px";
d.style.marginBottom = border+"px" ;
d.style.marginRight = border +"px";
d.style.width = (w - (2 * border)-5)+"px" ;
d.style.height = (h - (2 * border)-30)+"px" ;
var c = document.getElementById('tflj');//tflj为放在DIV里面的元素
c.style.width = d.style.width;
c.style.height = d.style.height;
}
var h =(document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight || window.innerHeight);
var w = (document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth || window.innerWidth);
var d = document.getElementById('iframe');//ifame为DIV的ID
d.style.marginTop = border +"px";
d.style.marginLeft = border +"px";
d.style.marginBottom = border+"px" ;
d.style.marginRight = border +"px";
d.style.width = (w - (2 * border)-5)+"px" ;
d.style.height = (h - (2 * border)-30)+"px" ;
var c = document.getElementById('tflj');//tflj为放在DIV里面的元素
c.style.width = d.style.width;
c.style.height = d.style.height;
}