function affiche(champs){
	propre = new Array("Customer_SurName","PRENOM","Customer_Name","NOM","Customer_Email","EMAIL","Customer_Pass","MOT DE PASSE","Customer_Phone","TELEPHONE","Customer_Zip","CODE POSTAL","Customer_Fax","FAX");
	for (n=0;n<=propre.length;n++){
		if (champs==propre[n])
			return propre[n+1]
	}
}	
function verif_form(formu){
	//caractères incorrects
	var caract_interdit_str	= new Array("'","\\","\/","\;","\!","\§","\:","\?","\$","\¤","\£","\$","\%","\&","\{","\}","\]","\[","\°","\#","\=","\+","\*","\`","\<","\>","\"","\,","\.");
	var caract_interdit_pwd	= new Array("'","\\","\/",";","!","§",":","?","$","¤","£","$","%","&","{","}","]","[","°","#","=","+","*","`","<",">","\"",",",".","~","é","ê","è","ï","î","â","û","ù");
	var expr_reg_mail	= /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]{2,}[.][a-zA-Z]{2,4}$/;
	var expr_reg_nums	= /\D/;
	formulaire		= document.forms[formu];
	form_items_nb 	= formulaire.length;
		//alert(form_items_nb);
		for (i=0;i<=form_items_nb-1;i++){
			Item_name	= formulaire[i].name;
			Item_valeur	= formulaire[i].value;
			//champs obligatoires
			if ((Item_name=="Customer_SurName")||(Item_name=="Customer_Name")||(Item_name=="Customer_Email")||(Item_name=="Customer_Pass")){
				//champs vides
				if (Item_valeur == ""){
					alert("LE CHAMPS '"+affiche(Item_name)+"' EST OBLIGATOIRE");
					Item_name.focus;
					return false;
				//vérif caractères
				}else if(Item_name=="Customer_Email"){
					if(expr_reg_mail.test(Item_valeur)==false) {
						alert("CHAMPS EMAIL INCORRECT"); 
						formulaire[i].focus;
						return false;
					}
				}else if(Item_name=="Customer_Pass"){
					for(j=0;j<=caract_interdit_pwd.length;j++){
						verif_pass = Item_valeur.indexOf(caract_interdit_pwd[j]);
						if (verif_pass>-1){
							alert("CARACTERES INCORRECTS DANS LE PASSWORD :\n\nCARACTERES INTERDITS : \n"+caract_interdit_pwd); 
							formulaire[i].focus;
							return false;
						}
					}
				}else if ((Item_name=="Customer_Name") || (Item_name=="Customer_SurName")){
					for(t=0;t<=caract_interdit_str.length;t++){
						verif_str = Item_valeur.indexOf(caract_interdit_str[t]);
						if (verif_str>-1){
							alert("CARACTERES INCORRECTS DANS L'EXPRESSION :\n"+Item_valeur+"\n\nCARACTERES INTERDITS : \n"+caract_interdit_str); 
							formulaire[i].focus;
							return false;
						}
					}
				}
			}else if((Item_name=="Customer_Phone")||(Item_name=="Customer_Fax")||(Item_name=="Customer_Zip")||(Item_name=="Customer_Pass")){
				if(expr_reg_nums.test(Item_valeur)==true) {
					alert("PAS DE CARACTERES ADMIS POUR LE CHAMPS '"+affiche(Item_name)+"'"); 
					formulaire[i].focus;
					return false;
				}
			}
		}//for
		return true;
}
