 <!-- ***** All rights reserved @ Practical Group ***** -->
 <!-- ***** Tous droits réservés @ Groupe Pratique ***** -->
<!-- SCRIPT DEMARRAGE DE LA PAGE // RESOLUTION ECRAN VISITEUR + MAXIMISATION FENETRE -->
window.moveTo(0,0);
if (document.getElementById || document.all) 
  {
  window.resizeTo(screen.availWidth, screen.availHeight);
  }
else if (document.layers) 
  {
  if (window.outerHeight<screen.availHeight || window.outerWidth<screen.availWidth)
    {
    window.outerHeight = screen.availHeight;
    window.outerWidth = screen.availWidth;
    }
  }

<!-- SCRIPT VALIDATION FILTRE -->
function verify()
{
x=0;
if(document.filtre.cat_1.checked) x++;
if(document.filtre.cat_2.checked) x++;
if(document.filtre.cat_3.checked) x++;
if(document.filtre.cat_4.checked) x++;
if(document.filtre.cat_5.checked) x++;
if(document.filtre.cat_6.checked) x++;
if(document.filtre.cat_7.checked) x++;
if(document.filtre.cat_8.checked) x++;
if(document.filtre.l.value!='')
	{
	if(x>=1) document.filtre.submit();
	else alert('Vous devez cocher au moins une catégorie !\nVous devez recommencer à zéro !\nYou must notch at least one category !\nYou must restart from begining !');
	}
}

<!-- SCRIPT SELECTION TOUTE LES CHECKBOX FORMULAIRE DOWNLOAD -->
function select_all()
{
if(document.download.toute.checked)
{
	for(n=0;n<document.download.elements.length;n++)
	{
		if(document.download.elements[n].type=='checkbox' && document.download.elements[n].name!='toute')
		{
			document.download.elements[n].checked=1;
		}
	}
}else
{
	for(n=0;n<document.download.elements.length;n++)
	{
		if(document.download.elements[n].type=='checkbox' && document.download.elements[n].name!='toute')
		{
			document.download.elements[n].checked=0;
		}
	}
}
}

function all_selected()
{
	selected=0;
	nb_checkbox=0;
	for(n=0;n<document.download.elements.length;n++)
	{
		if(document.download.elements[n].type=='checkbox' && document.download.elements[n].name!='toute')
		{
			if(document.download.elements[n].checked != document.download.toute.checked) document.download.toute.checked=0;
			if(document.download.elements[n].checked) selected++;
			nb_checkbox++;
		}
	}
	if(selected == nb_checkbox) document.download.toute.checked=1;
}

<!-- SCRIPT VALIDATION FORMULAIRE DOWNLOAD -->
function telecharger()
{
	selected=0;
	for(n=0;n<document.download.elements.length;n++)
	{
		if(document.download.elements[n].type=='checkbox' && document.download.elements[n].name!='toute')
		{
			if(document.download.elements[n].checked) selected++;
		}
	}
	if(selected > 0) document.download.submit();
	else alert('Vous devez avoir sélectionné au moins une police !\n You must notch at least one font !');
}
