﻿// JScript File
function resize_me(n) 
{ 
	d=0; 
	ifObj=document.getElementsByName(n)[0]; 
	p=(document.all)?'scroll':'offset'; 
	
	//ifObj2=document.getElementById('diviframe'); 
	
	if(document.all){			
			eval("ifObj.style.height=window.frames[n].document.getElementsByTagName('body')[0]."+p+"Height+"+d); 
			eval("ifObj.style.width=window.frames[n].document.getElementsByTagName('body')[0]."+p+"Width+"+d); 			
	}
	else{
	
			eval("ifObj.style.width='100%'")
			eval("ifObj.style.height='100%'")
	
			eval('ifObj.scrolling="auto"')
			var mywidth=eval("window.frames[n].document.getElementsByTagName('body')[0].scrollWidth");
			var myHeight=eval("window.frames[n].document.getElementsByTagName('body')[0].scrollHeight");
			//alert(eval("window.frames[n].document.getElementsByTagName('body')[0].scrollWidth") + "\n" + eval("window.frames[n].document.getElementsByTagName('body')[0].offsetWidth"));
			
			eval('ifObj.scrolling="no"')
			
			//var myHeight=eval("window.frames[n].document.getElementsByTagName('body')[0].scrollHeight");			
			//alert(eval("ifObj.style.width"));			
			//alert(eval("window.frames[n].document.getElementsByTagName('body')[0].scrollWidth") + "\n" + eval("window.frames[n].document.getElementsByTagName('body')[0].offsetWidth"));			
			
	
			eval("ifObj.style.height=" + "myHeight +" + "25");//window.frames[n].document.getElementsByTagName('body')[0]."+p+"Height+"+25); 
			eval("ifObj.style.width=" + "mywidth +" + "25"); 
			
			//alert(eval('ifObj.style.width'));
			
	}	
} 


