function onIARWindowResize()
{	var eDiv			=document.getElementById('eDivAchievementView');
	var iClientHeight,iClientWidth;
	if(eDiv.style.display=='block')
	{	// une fois le scroll désactivé, on prend les mesures
		with(document.body)
		{	iClientHeight	=clientHeight;
			iClientWidth	=clientWidth;
		}
		// on les applique
		with(eDiv.style)
		{	height	=iClientHeight+'px';
			width	=iClientWidth+'px';
		}
		// on repositionne le scroll, sans afficher la barre
		with(document.body)
		{	scrollTop	=eDiv.getAttribute('MY_BODY_SCROLL_TOP');
			scrollLeft	=eDiv.getAttribute('MY_BODY_SCROLL_LEFT');
		}	
	}
}
window.onresize	=onIARWindowResize;
function onIARAchievementClick(iIarYear)
{	var eDiv			=document.getElementById('eDivAchievementView');
	var iScrollTop		=document.body.scrollTop;
	var iScrollLeft		=document.body.scrollLeft;
	var iClientHeight,iClientWidth;
	var i;
	with(document.body)
	{	// désactive le scroll
		style.overflow		='hidden';
		// une fois le scroll désactivé, on prend les mesures
		iClientHeight	=clientHeight;
		iClientWidth	=clientWidth;
	}
	// On affiche l'IAR en question
	with(eDiv.firstChild)
	{	for(i=0;i<rows.length;i++)
			rows[i].style.display				='none';
	}
	with(document.getElementById('eIAR_Achievement'+iIarYear+'_Big'))
	{	style.display	='';
	}
	// on les applique
	with(eDiv.style)
	{	top		=iScrollTop+'px';
		left	=iScrollLeft+'px';
		height	=iClientHeight+'px';
		width	=iClientWidth+'px';
		display	='block';
	}
	// puis on repositionne le scroll, sans afficher la barre
	with(document.body)
	{	scrollTop	=iScrollTop;
		scrollLeft	=iScrollLeft;
	}
	eDiv.setAttribute('MY_BODY_SCROLL_TOP',iScrollTop);
	eDiv.setAttribute('MY_BODY_SCROLL_LEFT',iScrollLeft);
}
function onIARAchievementClose()
{	var eDiv	=document.getElementById('eDivAchievementView');
	eDiv.style.display	='none';
	with(document.body)
	{	style.overflow	='auto';
		scrollTop		=eDiv.getAttribute('MY_BODY_SCROLL_TOP');
		scrollLeft		=eDiv.getAttribute('MY_BODY_SCROLL_LEFT');
	}
}
//document.getElementById('eDivAchievementView').style.display	='none';