function alignement(ligne,align){  
	document.getElementById('alignement_'+ligne).value=align; 
	document.getElementById('align_'+ligne+'_gauche').src='images/gauche_off.gif';
	document.getElementById('align_'+ligne+'_centre').src='images/centre_off.gif';
	document.getElementById('align_'+ligne+'_droite').src='images/droite_off.gif';
	document.getElementById('align_'+ligne+'_'+align).src='images/'+align+'.gif';  
}

function maj_gras(coche,li){
	var police=document.getElementById('font'+li).selectedIndex;
	var italique=document.getElementById('ita'+li);
	if (police==8)
		if(coche)
			italique.checked='';
}
function maj_ital(coche,li){
	var police=document.getElementById('font'+li).selectedIndex;
	var gras=document.getElementById('gras'+li);
	if (police==8){
		if(coche)
			gras.checked='';
	}
	if (police==3)
		document.getElementById('ita'+li).checked="checked";  
}

function maj_graisse(policeselectionnee,li){
	var gras=document.getElementById('gras'+li);
	var italique=document.getElementById('ita'+li);
	gras.disabled="";  
	italique.disabled="";  
	gras.style.visibility="visible";  

 if (policeselectionnee==0){
		gras.checked='';
		italique.checked='';
		gras.disabled="disabled";  
		italique.disabled="disabled";  
 	}
	else if (policeselectionnee==3){
		gras.checked='';
		gras.style.visibility="hidden";  
		italique.checked="checked";  
 	}
	else if (policeselectionnee==4){
		italique.checked='';
		italique.disabled="disabled";  
 	}
	else if (policeselectionnee==6){
		gras.checked='';
		italique.checked='';
		gras.disabled="disabled";  
		italique.disabled="disabled";  
 	}
	else if (policeselectionnee==8){
		if(gras.checked){ 
			italique.checked='';
		}
		if(italique.checked){
			gras.checked='';
		}
 	}
	else if (policeselectionnee==14){
		gras.checked='';
		italique.checked='';
		gras.disabled="disabled";  
		italique.disabled="disabled";  
 	}
}

<!-- js sur l'index -->
function af_bulle(bulle){
document.getElementById('symb-tpvclogo').src='images/plus.gif';
document.getElementById('symb-tpsslogo').src='images/plus.gif';
document.getElementById('symb-dateur').src='images/plus.gif';
document.getElementById('symb-numeroteur').src='images/plus.gif';
document.getElementById('symb-encreur').src='images/plus.gif';
document.getElementById('symb-tarif').src='images/plus.gif';
document.getElementById('menu-tpsslogo').style.color='#000';
document.getElementById('menu-tpvclogo').style.color='#000';
document.getElementById('menu-dateur').style.color='#000';
document.getElementById('menu-numeroteur').style.color='#000';
document.getElementById('menu-encreur').style.color='#000';
document.getElementById('menu-tarif').style.color='#000';
document.getElementById('bulle-tpsslogo').style.visibility='hidden';
document.getElementById('bulle-tpvclogo').style.visibility='hidden';
document.getElementById('bulle-dateur').style.visibility='hidden';
document.getElementById('bulle-numeroteur').style.visibility='hidden';
document.getElementById('bulle-encreur').style.visibility='hidden';
document.getElementById('bulle-tarif').style.visibility='hidden';
document.getElementById('bulle-'+bulle).style.visibility='visible';
document.getElementById('menu-'+bulle).style.color='#c00';
document.getElementById('symb-'+bulle).src='images/moins.gif';
}

<!-- Validation form tampons-multicolores.php, tampon-bois-classique.php, reglement.php, recherche-encreur.php, Contact.php; bon-tirer-devis-gratuit.php -->
function Validator(theForm){
  if (theForm.personne.value == "")  {
    alert("Veuillez préciser votre nom et votre prénom.\nMerci");
    theForm.personne.focus();
    return (false);
  }
  if (theForm.tel.value == "")  {
    alert("Veuillez préciser votre numéro de téléphone.\nMerci");
    theForm.tel.focus();
    return (false);
  }
  if (theForm.cp.value == "")  {
    alert("Veuillez préciser votre code postal.\nMerci");
    theForm.cp.focus();
    return (false);
  }
	
	var a=theForm.mail.value;
	var test="" + a;
	for(var k=0; k < test.length-3;k++){
		var c = test.substring(k,k+1);
		if(c == "@"){
			for(var l=k; l<test.length-2;l++){
				var c = test.substring(l,l+1);
				if(c == "."){
					return true;
				}
			}
		}
	}
	alert("Saisissez une adresse e-mail correcte, merci");
	theForm.mail.focus();
	return false;
}
//-->

<!-- commande.php appel validator2 -->
function Validator2(theForm){
	for (element=0; element<20; element++){
		if(document.getElementById('ligne'+element)){
			var ligne = document.getElementById('ligne'+element);
			var texte = document.getElementById('texte'+element);
			if(ligne[0].selected&&(ligne[0].value==0)){
				var confirmation = confirm("Vous avez indiqué un nombre de ligne égal à 0 pour un de vos produits.\nEtes-vous sûr de cette valeur ?");
				if (!(confirmation)){
					ligne.focus();
					return (false);
				}
			}
			var indice = 0;
			while(!ligne[indice].selected)
				indice++;
			if(texte.value!=''){
				var nb_ligne = 1;
				var deb = 0;
				var pos;
				while((pos = texte.value.indexOf('\n',deb)) && (pos!=-1)){
					nb_ligne++;
					deb = pos+1;
				}
				if(ligne[indice].value<nb_ligne){
				confirmation = confirm('Pour un produit, vous avez indiqué '+ligne[indice].value+' linge(s).\nLe texte que vous avez saisi semble en comporter '+nb_ligne+' : \n"'+texte.value+'"\nConfirmez-vous que votre texte ne fait que '+ligne[indice].value+' ligne(s) ?');
				if (!(confirmation)){
						ligne.focus();
						return (false);
					}
				}
			}
		}
	}
	
	if(theForm.verif.value == "non"){
		return true;
	}
  if (theForm.nom.value == ""){
    alert("Veuillez préciser votre nom.\nMerci");
    theForm.nom.focus();
    return (false);
  }
  if (theForm.adresse.value == ""){
    alert("Veuillez préciser votre adresse.\nMerci");
    theForm.adresse.focus();
    return (false);
  }
  if (theForm.cp.value == ""){
    alert("Veuillez préciser votre code postal.\nMerci");
    theForm.cp.focus();
    return (false);
  }
  if (theForm.ville.value == ""){
    alert("Veuillez préciser votre ville.\nMerci");
    theForm.ville.focus();
    return (false);
  }
  if (theForm.tel.value == ""){
    alert("Veuillez préciser votre numéro de téléphone.\nMerci");
    theForm.tel.focus();
    return (false);
  }

	var a=theForm.email.value;
	var test="" + a;
	for(var k=0; k < test.length-3;k++){
		var c = test.substring(k,k+1);
		if(c == "@"){
			for(var l=k; l<test.length-2;l++){
				var c = test.substring(l,l+1);
				if(c == "."){
				//	alert(theForm.paiement[0].checked+' '+theForm.paiement[1].checked+' '+theForm.paiement[2].checked);
					if ((theForm.paiement[0].checked==false)&&(theForm.paiement[1].checked==false)&&(theForm.paiement[2].checked==false)&&(theForm.paiement[3].checked==false)){
						alert("Veuillez préciser le moyen de paiement choisit.\nMerci");
						theForm.paiement[0].focus();
						return (false);
					}
					else
						return true;
				}
			}
		}
	}
	alert("Saisissez une adresse e-mail correcte, merci");
	theForm.email.focus();
	return false;}
//-->
<!-- caoutchouc-tampon.php -->
function Validator3(theForm){
  if (theForm.ref.value == "")  {
    alert("Veuillez préciser la référence de votre tampon.\nMerci");
    theForm.ref.focus();
    return (false);
  }
  if (theForm.ligne.value == "")  {
    alert("Veuillez préciser le nombre de ligne de votre empreinte.\nMerci");
    theForm.ligne.focus();
    return (false);
  }
  if (theForm.nombre.value == "")  {
    alert("Veuillez préciser le nombre d'exemplaires désiré.\nMerci");
    theForm.nombre.focus();
    return (false);
  }
  return (true);
}
//-->

<!-- marche-public-regulier.php -->
function validform4(theForm){
  if (theForm.personne.value == ""){
    alert("Veuillez préciser votre nom.\nMerci");
    theForm.personne.focus();
    return (false);
  }
  if (theForm.adresse_fac.value == ""){
    alert("Veuillez préciser votre adresse.\nMerci");
    theForm.adresse_fac.focus();
    return (false);
  }
  if (theForm.cp_fac.value == ""){
    alert("Veuillez préciser votre code postal.\nMerci");
    theForm.cp_fac.focus();
    return (false);
  }
  if (theForm.ville_fac.value == ""){
    alert("Veuillez préciser votre ville.\nMerci");
    theForm.ville_fac.focus();
    return (false);
  }
  if (theForm.tel.value == ""){
    alert("Veuillez préciser votre numéro de téléphone.\nMerci");
    theForm.tel.focus();
    return (false);
  }

	var a=theForm.mail.value;
	var test="" + a;
	for(var k=0; k < test.length-3;k++){
		var c = test.substring(k,k+1);
		if(c == "@"){
			for(var l=k; l<test.length-2;l++){
				var c = test.substring(l,l+1);
				if(c == "."){
				//	alert(theForm.paiement[0].checked+' '+theForm.paiement[1].checked+' '+theForm.paiement[2].checked);
					if ((theForm.paiement[0].checked==false)&&(theForm.paiement[1].checked==false)&&(theForm.paiement[2].checked==false)){
						alert("Veuillez préciser le moyen de paiement choisit.\nMerci");
						theForm.paiement[0].focus();
						return (false);
					}
					else
						return true;
				}
			}
		}
	}
	alert("Saisissez une adresse e-mail correcte, merci");
	theForm.mail.focus();
	return false;}
//-->

