function resizeIframe()
{
	try
	{
		if (shoppingBagBodyTag.scrollHeight == 0)
		{
			setTimeout("resizeIframe()",500);						
		}
		
		var iframeID	=	parent.shoppingBagID;
		if(self==parent) 
		{
			return false; /* Checks that page is in iframe. */
		}
		else if(document.getElementById&&document.all) /* Sniffs for IE5+.*/
		
		var FramePageHeight = shoppingBagBodyTag.scrollHeight -20+"px"; 
		
		/* The substructed 20 pixels prevent an unnecessary scrollbar. */
		
		var obj = parent.document.getElementById(iframeID);
		
		if(obj)
		{
			obj.style.height = FramePageHeight;
			
			/* "iframeID" is the ID of the inline frame in the parent page. */
			
			/*for fire fox*/			
			obj.style.height=this.document.body.offsetHeight+20+"px";
		}				
	}
	catch(e)
	{
		//alert("resizeIframe: " + e.description);
	}
}
