function openWindow(url,largeur,hauteur,scrollbars,resizable)
{
	if(largeur == 0 || hauteur == 0)
	{
		win=window.open(url,'_blank');
	}
	else
	{
		win=window.open(url,'popup_'+largeur+'x'+hauteur+'_'+scrollbars+'_'+resizable,'width='+largeur+',height='+hauteur+',top='+((screen.height-hauteur)/2)+',left='+((screen.width-largeur)/2)+',scrollbars='+scrollbars+',resizable='+resizable);

		if(win != null)
		{
			win.focus();
		}
	}

	if(win == null)
	{
		alert('La fenêtre pop-up n\'a pas pu s\'ouvrir.\n\nVeuillez désactiver votre anti-popup et réessayer !');
	}

	return win;
}


function checkAll(form)
{
	for(i=0;i < form.elements.length;i++)
	{
		if(form.elements[i].type == 'checkbox')
		{
			form.elements[i].checked=true;
		}
	}
}

function uncheckAll(form)
{
	for(i=0;i < form.elements.length;i++)
	{
		if(form.elements[i].type == 'checkbox')
		{
			form.elements[i].checked=false;
		}
	}
}

function twAfficheCache(nObjet,nEtat) {
	/*document.getElementById(nObjet).style.visibility = (nEtat==0?'hidden':'visible'); */
	document.getElementById(nObjet).style.display = (nEtat==0?'none':'block');

}

