I'm having a problem in FireFox, Netscape, and Safari with trying to print a page after using dom scripting to resize a div element.

In those browsers when printing the resized element gets printed over.

Below is a basic code example, when you view the print preview you should see that the resized div gets overwriten.

Anyone have any solutions? thanks

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	
	<title>Print Test</title>
	
	<style type="text/css">
	@media all {
		body {
			font-family:Arial, Helvetica, sans-serif;
		}
	}
	@media screen {
		#resizeme {
			overflow:auto;width:400px;border:#aaa 2px solid;background:#efefef;padding:4px;
		}
	}
	</style>

	<script type="text/javascript">
	var resize = {
		//resize top box
		size: function(){
			var resizeme = document.getElementById('resizeme');
			resizeme.style.height = '30px';
		}
	};
	</script>

</head>

<body onload="resize.size();">
<p>
	When print previewed does the content in the two below DIVs overlap?
</p>
<div id="resizeme">
	<strong>Lorem ipsum dolor sit amet</strong>, consectetuer adipiscing elit. Mauris pede. Vestibulum quis ipsum. Nulla non nunc. Nullam massa. Mauris ac dolor. Proin sed ante. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur vitae nisl et leo viverra laoreet. Donec ut ante. Sed tempor. In orci justo, ornare at, varius id, luctus et, sem. Morbi id dui vitae leo posuere gravida. Aenean id sem. Nulla pulvinar auctor elit. Cras neque felis, convallis a, vehicula at, accumsan et, massa. Vivamus malesuada, purus a aliquet dictum, elit nunc sollicitudin nulla, sit amet ultrices diam augue sit amet massa. Donec sit amet tellus a purus aliquam scelerisque. Aliquam et dolor. Nullam rutrum risus at lacus.
</div>

<div style="color:#003399;">
	<strong>Ut facilisis augue quis dolor</strong>. Nam leo sapien, lacinia pretium, sodales quis, cursus pellentesque, neque. Aliquam erat volutpat. Praesent nisi. Mauris placerat urna. Proin id ipsum eget est lacinia fermentum. Pellentesque imperdiet quam at turpis tempus aliquam. Sed imperdiet lectus mollis nisl. Aliquam erat volutpat. Maecenas lacinia mauris. Aenean ut turpis. Proin sed mauris nec nisl pulvinar tincidunt. Phasellus vel justo porta est congue pretium. Nullam diam tortor, nonummy sit amet, cursus sed, dictum a, libero. Mauris odio ligula, ullamcorper sit amet, feugiat eget, sollicitudin ut, nibh.
</div>

</body>
</html>