function autoResize(id)
{
	var newheight;
	var newwidth;

	if(document.getElementById)
	{
		if(navigator.userAgent.indexOf("MSIE")!=-1)
		{
			newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
			newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
		}
		if(navigator.userAgent.indexOf("Firefox")!=-1)
		{                                                                             
			newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
			newwidth=document.getElementById(id).contentWindow.document.body.scrollWidth;
		}                                             
	}                                             
	
	alert(navigator.userAgent.indexOf);
	
	if(navigator.userAgent.indexOf("MSIE")!=-1)
	{                                                                             
		document.getElementById(id).style.height= (newheight) + "px";
		document.getElementById(id).style.width= (newwidth) + "px";
	}
	
	if(navigator.userAgent.indexOf("Firefox")!=-1)
	{                                                                             
		document.getElementById(id).height= (newheight) + "px";
		document.getElementById(id).width= (newwidth) + "px";

	}                              
}                              


