perchè su ie funziona e su mozilla no?? originariamente mese è posizionato in (0, 0) e dopo la chiamata a vedi() su mozilla resta nella stessa posizione mentre su ie è posizionato correttamente

ps mese è una coppia di <span> conteneti una <table>

codice:
	function getPageCoords(element)
		{
		var coords = {x: 0, y: 0};
		while(element)
			{
			coords.x += element.offsetLeft;
			coords.y += element.offsetTop;
			element = element.offsetParent;
			}
		return coords;
		} 
	function vedi(mese, chiudi)
		{
		b = getPageCoords(document.getElementById('calendario'));
		document.getElementById(mese).style.position = 'absolute';
		document.getElementById(mese).style.top = (b.y + 20);
		document.getElementById(mese).style.left = b.x;
		document.getElementById(chiudi).style.visibility = 'hidden';
		document.getElementById(mese).style.visibility = 'visible';
		}