Expand|Select|Wrap|Line Numbers
- function reloadparent()
- {
- autoResizeObject(self.parent.document.getElementById('modelFrame'));
- autoResizeObject(self.parent.parent.document.getElementById('productFrame'));
- }
- function autoResizeObject(obj)
- {
- var newheight;
- var newwidth;
- if(document.getElementById){
- newheight=obj.contentWindow.document.body.scrollHeight;
- newwidth=obj.contentWindow.document.body.scrollWidth;
- }
- obj.style.height= (newheight+10) + "px";
- //obj.style.width= (newwidth) + "px";
- }