
var precedentdiv=0;

function survole(obj)
{
	obj.style.background='#D0D0D0';
}

function desurvole(obj)
{
	obj.style.background='#E5F0E0';
}

function CalculeTaille()
{
	if (document.body.offsetWidth < 1016)
		document.all.CadrePage.style.pixelWidth = document.body.offsetWidth - 50;
	else
		document.all.CadrePage.style.pixelWidth = 966;
}

function affichediv(num)
{
	if (precedentdiv)
		eval("document.all.Cadre"+precedentdiv+".style.display = 'none';");
	eval("document.all.Cadre"+num+".style.display = 'block';");
	precedentdiv=num;
}

function fenetre(URL,L,H)
{
	var scrollbars="yes";
	if (L==0 || L>screen.availWidth)
		L = screen.availWidth;
	if (H==0 || H>screen.availHeight)
		H = screen.availHeight-50;
	if (L!=0 && H!=0 && L!=screen.availWidth && H!=screen.availHeight)
		scrollbars="no";
	var wobj = window.open(URL, 'FRFA', 'width='+L+', toolbar=no, menubar=no, scrollbars='+scrollbars+', left=0, top=0 height='+H);
	wobj.resizeTo(L,H);
	wobj.focus(); 
}