function resizeIframe(frame) {
  try {
  
	if(frame.contentDocument) 	frame.height = frame.contentDocument.body.scrollHeight;
	else 	frame.style.height = frame.contentWindow.document.body.scrollHeight;
  }
  catch (e) {
     window.status = e.message;
  }
}

function fix_sizeMain(dodaj) {	
	obj=strona.document.getElementById("tabglowna");	
	//alert(obj.id);
	if (obj) {
		if (isNaN(dodaj)) dodaj=0;
		//alert(size);
		document.getElementById("strona").style.height = dodaj + obj.clientHeight;
	}
	else resizeIframe(parent.document.getElementById('strona'));
}