function chgpage(formulaire){
	if (formulaire.type.options[formulaire.type.selectedIndex].value == '')	return false
	else
		location.href = formulaire.type.options[formulaire.type.selectedIndex].value;
		
}


function chgpage2(formulaire)
{
	var Check;
	
	Check = confirm(lang_js_pernac_verify_delete_cart_before_change_country);
	if(Check == true) 
	{
		if (formulaire.type.options[formulaire.type.selectedIndex].value == '')	return false
		else location.href = formulaire.type.options[formulaire.type.selectedIndex].value;
		
		return true;
	}
	else {
	return false;
	}	
		
	 
}




function chgpage_video(video_flag)
{
	
		var loc = window.location.href+ '?st='+ video_flag;
		
		alert(loc); 
		
		location.href = loc;
		
		
		
		
		return true;
	
		
	 
}


function chgpage3(formulaire){
	if (formulaire.type.options[formulaire.type.selectedIndex].value == '')	return false
	else
		{ 
			
			window.opener.location.href = formulaire.type.options[formulaire.type.selectedIndex].value;
			window.close();
		}
}


function chgpageflag(val)
{
	
		location.href = val;
		
}


function chgpageflag2(val)
{
	var Check;
	
	Check = confirm(lang_js_pernac_verify_delete_cart_before_change_country);
	if(Check == true) 
	{
		location.href = val;
		
		return true;
	}
	else {
	return false;
	}	
		
	 
}




function validation() 
{  
				        if(document.formulaire.name.value == '') 
								{ 
				        alert (lang_js_pernac_user_create_entrer_nom); 
				        document.formulaire.name.focus(); 
				        return false; 
				    		}
				        
				    		
				       	if(document.formulaire.firstname.value == '') 
								{ 
				        alert (lang_js_pernac_user_create_entrer_prenom); 
				        document.formulaire.firstname.focus(); 
				        return false; 
				    		}
						
							
				 				var email = document.formulaire.email.value; 
				        if (email.search(/^[_a-z0-9-]+(.[_a-z0-9-]+)*[^._-]@[a-z0-9-]+(.[a-z0-9]{2,4})*$/) == -1)
				        { 
				            alert (lang_js_pernac_user_js_login_saisir_adresse_valide); 
				            document.formulaire.email.focus(); 
				            return false; 
				        } 
				       
						
									if(document.formulaire.email_confirm.value == '') 
								{ 
				        alert (lang_js_pernac_user_create_confirmer_email); 
				        document.formulaire.email_confirm.focus(); 
				        return false; 
				    		}
				    		
				    		if(document.formulaire.email_confirm.value != document.formulaire.email.value) 
								{ 
				        alert (lang_js_pernac_user_create_confirmer_email_identique); 
				        document.formulaire.email_confirm.focus(); 
				        return false; 
				    		}
						
						
						
						 	 
								
				        
				        if(document.formulaire.password.value == '') 
								{ 
				        alert (lang_js_pernac_user_create_entrer_password); 
				        document.formulaire.password.focus(); 
				        return false; 
				    		}
				    		
				    		
				    		if (document.formulaire.password.value.length < 4) 
				    		{
								alert (lang_js_pernac_user_create_entrer_password_nb_carctere_min); 
								document.formulaire.password.focus(); 
				        return false; 
								}
				    		
				    		if(document.formulaire.confirm_password.value == '') 
								{ 
				        alert (lang_js_pernac_user_create_confirmer_password); 
				        document.formulaire.confirm_password.focus(); 
				        return false; 
				    		}
				    		
				    		if(document.formulaire.confirm_password.value != document.formulaire.password.value) 
								{ 
				        alert (lang_js_pernac_user_create_confirmer_password_identique); 
				        document.formulaire.confirm_password.focus(); 
				        return false; 
				    		}
				    		
				    	
				else {return true;}
}
				
				
				
						
function verif_nombre(champ)
{
								var chiffres = new RegExp('[0-9]'); 
								var verif;
								
								for(x = 0; x < champ.value.length; x++)
								{
								verif = chiffres.test(champ.value.charAt(x));
								
								if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
								}
						
}
						
						


function change_date_chq(session_id)
{
	window.open('/infos/pop_calendrier.php?PHPSESSID='+session_id+'&frm=chq_cadeau&ch=date_to_send',null,'width=350,height=160,scrollbars=0',true).focus();
}

function change_date_rdv(session_id)
{
	window.open('/infos/rdv_pop_calendrier.php?PHPSESSID='+session_id+'&frm=getDateRdv&ch=date',null,'width=350,height=160,scrollbars=0',true).focus();
}



function show_order_details(NumOrder, rate_currency, symbole_currency,PHPSESSID)
{
	window.open('/infos/order_details.php?NumOrder='+NumOrder+'&rate_currency='+rate_currency+'&symbole_currency='+symbole_currency+'&PHPSESSID='+PHPSESSID,null,'width=700,height=550,scrollbars=1',true).focus();
	
}
						 					
function convert_date_to_fr(date_to_convert)
{
	alert(date_to_convert);
}

//Les variables recues ne sont utilisées que pour l'affichage (du fait du format de la date)
function set_rdvInfos_value(date, rdv_start_time_user, rdv_end_time_user)
{
	var count=0;
	
	while(typeof(document.getElementsByName("rdvRadio")[count] ) != "undefined")
	{
		
		if(document.getElementsByName("rdvRadio")[count].checked==true)
	  	{
			var value = document.getElementsByName("rdvRadio")[count].value;
			//On remplit le champ caché
			document.dateRdv.rdvInfos.value = value;	
			document.getDateRdv.rdvInfos.value = value;	
			//On affiche les nouvelles informations
			document.getElementById("dateSelect").innerHTML = lang_js_pernac_user_mesures_rdv_prevu_le + " <font color='red'>"+date+"</font> "+lang_js_pernac_user_mesures_rdv_prevu_entre+" <font color='red'>"+rdv_start_time_user+"</font> "+lang_js_pernac_user_mesures_rdv_prevu_et+" <font color='red'>"+rdv_end_time_user+"</font>."; 
	 	}
		count++;
	}
}

function verifRdv()
{
	if (document.dateRdv.rdvInfos.value == "")
	{
		alert(lang_js_pernac_verifRdv_msg1);
		return false;
	}
	else return true;
}




function valid_relance_filleul()
{
		var count=0;
		var done=0;
		var id_to_modify;
		
	while(typeof(document.getElementsByName("to_resend")[count] ) != "undefined")
	{
		if(document.getElementsByName("to_resend")[count].checked==true)
		{
			done=1;
			id_to_modify=document.getElementsByName("to_resend")[count].value;
		}
		count= count+1;
	}
	
	if(done==1)
	{
		document.relance_filleul.parrainage_id.value=id_to_modify;
		return true;
	}
else
	{
		 alert(lang_js_pernac_valid_relance_filleul_msg1);
			return false;
	}
	
			
}






function PopupWindow_bons_reducs(user_id,rate,symbole)
{
	
	var inLocation="/infos/visu_reduc_user_site.php?user_id=";
	


	inLocation=inLocation + user_id;
	
	if(symbole=='€') symbole='euros';
	if(symbole=='$') symbole='usd';
	
	inLocation=inLocation+'&symbole='+ symbole;

	inLocation=inLocation+'&rate='+rate;
	
	
	
	
	
	
  var features = "fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=650,height=300,top=50,left=50";
  if(NewPopWin != null)
  {
    if(!NewPopWin.closed)
    {
      NewPopWin.close();
    }  
  }
  
  
  NewPopWin = window.open(inLocation,null,features,true);
}


function put_ref_on_validation(ref_discount)
{
	
		

		window.opener.document.validation_cart.reduc_ref.value=ref_discount;
		
		window.opener.document.validation_cart.submit();
		
		self.close();

}






function change_color_of_selected_reducs()
{
	var named='div_';
	var named2='div2_';
	var named3='div3_';
	var named4='div4_';
	var named5='div5_';
	var named6='div6_';
	var named7='div7_';
	var named8='div8_';
	
	var count=0;
	
	
	while(typeof(window.opener.document.getElementsByName("ref_aapliedyy_popup")[count]) != "undefined" )
	{
		
					var ref_reduc=window.opener.document.getElementsByName("ref_aapliedyy_popup")[count].value;
					
					var finishname= named + ref_reduc;
					
					
					var obj = window.document.getElementById(finishname);
		  		
		  		var pos = ref_reduc.search("CC");
		  		
		  	
		  		
		  		if(pos == -1)
					{
		  					obj.className = "Small_txt_red";
		  		
		  		
					  		var finishname= named2 + ref_reduc;
								var obj = window.document.getElementById(finishname);
					  		obj.className = "Small_txt_red";
					  		
					  		var finishname= named3 + ref_reduc;
								var obj = window.document.getElementById(finishname);
					  		obj.className = "Small_txt_red";
					  		
					  		var finishname= named4 + ref_reduc;
								var obj = window.document.getElementById(finishname);
					  		obj.className = "Small_txt_red";
					  		
					  		var finishname= named5 + ref_reduc;
								var obj = window.document.getElementById(finishname);
					  		obj.className = "Small_txt_red";
					  		
					  		var finishname= named6 + ref_reduc;
								var obj = window.document.getElementById(finishname);
					  		obj.className = "Small_txt_red";
					  		
					  		var finishname= named7 + ref_reduc;
								var obj = window.document.getElementById(finishname);
					  		obj.className = "Small_txt_red";
					  		
					  		var finishname= named8 + ref_reduc;
								var obj = window.document.getElementById(finishname);
					  		obj.className = "Small_txt_red";
					
					}
					
					count=count+1;
	}
	
	if(count!=0) 
	{
					var obj = window.document.getElementById("legendeff");
		  		obj.className = "by_post_ok";
		
		
	}
	
	
	


}







function PopupWindow_visu_promo(st,promo,PHPSESSID)
{
	
	var inLocation="/infos/visu_promo.php?";
	
	
	inLocation=inLocation+'st='+st+'&';
	inLocation=inLocation+'promo='+promo+'&';
	inLocation=inLocation+'PHPSESSID='+PHPSESSID;
	
  var features = "fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=700,height=400,top=50,left=50";
  if(NewPopWin != null)
  {
    if(!NewPopWin.closed)
    {
      NewPopWin.close();
    }  
  }
  
  
  NewPopWin = window.open(inLocation,null,features,true);
}


function PopupWindow_visu_parrain(message_filleul,email_filleul,prenom_filleul,name_filleul,user_id,PHPSESSID)
{
	
	var inLocation="/infos/visu_parrainage.php?";
	
	
	inLocation=inLocation+'message_filleul='+message_filleul+'&';
	inLocation=inLocation+'email_filleul='+email_filleul+'&';
	inLocation=inLocation+'prenom_filleul='+prenom_filleul+'&';
	inLocation=inLocation+'user_id='+user_id+'&';
	inLocation=inLocation+'name_filleul='+name_filleul+'&';
	inLocation=inLocation+'PHPSESSID='+PHPSESSID;
	
  var features = "fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=700,top=50,left=50";
  if(NewPopWin != null)
  {
    if(!NewPopWin.closed)
    {
      NewPopWin.close();
    }  
  }
  
  
  NewPopWin = window.open(inLocation,null,features,true);
}


function PopupWindow_remmander_site(PHPSESSID)
{
	
	var inLocation="/infos/recommander_site.php?";
	
	
	
	inLocation=inLocation+'PHPSESSID='+PHPSESSID;
	
	
  var features = "fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=700,top=50,left=50";
  if(NewPopWin != null)
  {
    if(!NewPopWin.closed)
    {
      NewPopWin.close();
    }  
  }
  
  
  NewPopWin = window.open(inLocation,null,features,true);
}




/*
function PopupWindow_visu_parrain(message_filleul,email_filleul,prenom_filleul,name_filleul,user_id)
{
	
	var inLocation="/infos/visu_parrainage.php?";
	
	
	inLocation=inLocation+'message_filleul='+message_filleul+'&';
	inLocation=inLocation+'email_filleul='+email_filleul+'&';
	inLocation=inLocation+'prenom_filleul='+prenom_filleul+'&';
	inLocation=inLocation+'user_id='+user_id+'&';
	inLocation=inLocation+'name_filleul='+name_filleul;
	
  var features = "fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=700,top=50,left=50";
  if(NewPopWin != null)
  {
    if(!NewPopWin.closed)
    {
      NewPopWin.close();
    }  
  }
  
  
  NewPopWin = window.open(inLocation,null,features,true);
}

*/

function visu_parrainage(user_id,PHPSESSID)
{
	
	var name_filleul='';
	var prenom_filleul='';
	var email_filleul='';
	var message_filleul='';
	
	
	
	if(document.email.name.value=='')
		 {
			 alert(lang_js_pernac_visu_parrainage_msg1);
			return false;
		 
			}
		else
			{
				name_filleul=document.email.name.value;
					
			}
			
	if(document.email.surname.value=='')
					 {
					 	alert(lang_js_pernac_visu_parrainage_msg2);
					 	return false;
						}
					else
						{
							prenom_filleul=document.email.surname.value;
						}
					
		if(document.email.de.value=='')
		 {
		 	alert(lang_js_pernac_visu_parrainage_msg3);
		 	return false;
			}
		else	
			{
				email_filleul=document.email.de.value;
			}
			
			
			
			if(document.email.message.value=='')
		 {
		 	alert(lang_js_pernac_visu_parrainage_msg4);
		 	return false;
			}
		else
			{
				message_filleul=document.email.message.value;
			}
	
	
			if(message_filleul!='' && email_filleul!='' && prenom_filleul!='' && name_filleul!='')
			{
				PopupWindow_visu_parrain(message_filleul,email_filleul,prenom_filleul,name_filleul,user_id,PHPSESSID);
			}									 					
	
	
	
	
}

				
			var ns6=document.getElementById&&!document.all;
			
			function restrictinput(maxlength,e,placeholder)
			{
					if (window.event&&event.srcElement.value.length>=maxlength)return false;
					else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength)
					{
						var pressedkey=/[a-zA-Z0-9\.\,\/]/ 
						if (pressedkey.test(String.fromCharCode(e.which))) e.stopPropagation();
					}
			}
			
			function countlimit(maxlength,e,placeholder)
			{
					var theform=eval(placeholder)
					var lengthleft=maxlength-theform.value.length
					var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder)
					if (window.event||e.target&&e.target==eval(placeholder))
					{
							if (lengthleft<0)	theform.value=theform.value.substring(0,maxlength);
							placeholderobj.innerHTML=lengthleft;
					}
			}
			
			
			function displaylimit(thename, theid, thelimit)
			{
					var theform=theid!=""? document.getElementById(theid) : thename;
					var limit_text='<b><span id="'+theform.toString()+'">'+thelimit+'</span></b> '+lang_js_pernac_cc_caractere_restant+'.';
					if (document.all||ns6) document.write(limit_text);
					if (document.all)
					{
						eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform);}
						eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform);}
					}
					else if (ns6)
					{
						document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); 
						document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true); 
					}
			}
			
		
		
			
			var array_mesure_cou_cent = new Array();
			var array_mesure_cou_inch = new Array();
			var array_mesure_cou_cent_value = new Array();
			var array_mesure_cou_inch_value = new Array();
			
			array_mesure_cou_cent[0] = "Normal";
			array_mesure_cou_cent[1] = "34  ";
			array_mesure_cou_cent[2] = "35  ";
			array_mesure_cou_cent[3] = "36  ";
			array_mesure_cou_cent[4] = "37  ";
			array_mesure_cou_cent[5] = "38  ";
			array_mesure_cou_cent[6] = "39  ";
			array_mesure_cou_cent[7] = "40  ";
			array_mesure_cou_cent[8] = "41  ";
			array_mesure_cou_cent[9] = "42  ";
			array_mesure_cou_cent[10] = "43  ";
			array_mesure_cou_cent[11] = "44  ";
			array_mesure_cou_cent[12] = "45  ";
			array_mesure_cou_cent[13] = "46  ";
			array_mesure_cou_cent[14] = "47  ";
			array_mesure_cou_cent[15] = "48  ";
			array_mesure_cou_cent[16] = "49  ";
			array_mesure_cou_cent[17] = "50  ";
			array_mesure_cou_cent[18] = "51  ";
			array_mesure_cou_cent[19] = "52  ";
			array_mesure_cou_cent[20] = "53  ";
			array_mesure_cou_cent[21] = "54  ";
			array_mesure_cou_cent[22] = "55  ";
			array_mesure_cou_cent[23] = "56  ";
			array_mesure_cou_cent[24] = "57  ";
			array_mesure_cou_cent[25] = "58  ";
			array_mesure_cou_cent[26] = "59  ";
			array_mesure_cou_cent[27] = "60  ";
			array_mesure_cou_cent[28] = "61  ";
			array_mesure_cou_cent[29] = "62  ";
			array_mesure_cou_cent[30] = "63  ";
			
			


			array_mesure_cou_inch[0] = "Normal";
			array_mesure_cou_inch[1] = '13,4';
			array_mesure_cou_inch[2] = '13,8';
			array_mesure_cou_inch[3] = '14,2';
			array_mesure_cou_inch[4] = '14,6';
			array_mesure_cou_inch[5] = '15';
			array_mesure_cou_inch[6] = '15,4';
			array_mesure_cou_inch[7] = '15,7';
			array_mesure_cou_inch[8] = '16,1';
			array_mesure_cou_inch[9] = '16,5';
			array_mesure_cou_inch[10] = '16,9';
			array_mesure_cou_inch[11] = '17,3';
			array_mesure_cou_inch[12] = '17,7';
			array_mesure_cou_inch[13] = '18,1';
			array_mesure_cou_inch[14] = '18,5';
			array_mesure_cou_inch[15] = '18,9';
			array_mesure_cou_inch[16] = '19,3';
			array_mesure_cou_inch[17] = '19,7';
			array_mesure_cou_inch[18] = '20,1';
			array_mesure_cou_inch[19] = '20,5';
			array_mesure_cou_inch[20] = '20,9';
			array_mesure_cou_inch[21] = '21,3';
			array_mesure_cou_inch[22] = '21,7';
			array_mesure_cou_inch[23] = '22';
			array_mesure_cou_inch[24] = '22,4';
			array_mesure_cou_inch[25] = '22,8';
			array_mesure_cou_inch[26] = '23,2';
			array_mesure_cou_inch[27] = '23,6';
			array_mesure_cou_inch[28] = '24';
			array_mesure_cou_inch[29] = '24,4';
			array_mesure_cou_inch[30] = '24,8';
			








			array_mesure_cou_cent_value[0] = "Normal";
			array_mesure_cou_cent_value[1] = "34";
			array_mesure_cou_cent_value[2] = "35";
			array_mesure_cou_cent_value[3] = "36";
			array_mesure_cou_cent_value[4] = "37";
			array_mesure_cou_cent_value[5] = "38";
			array_mesure_cou_cent_value[6] = "39";
			array_mesure_cou_cent_value[7] = "40";
			array_mesure_cou_cent_value[8] = "41";
			array_mesure_cou_cent_value[9] = "42";
			array_mesure_cou_cent_value[10] = "43";
			array_mesure_cou_cent_value[11] = "44";
			array_mesure_cou_cent_value[12] = "45";
			array_mesure_cou_cent_value[13] = "46";
			array_mesure_cou_cent_value[14] = "47";
			array_mesure_cou_cent_value[15] = "48";
			array_mesure_cou_cent_value[16] = "49";
			array_mesure_cou_cent_value[17] = "50";
			array_mesure_cou_cent_value[18] = "51";
			array_mesure_cou_cent_value[19] = "52";
			array_mesure_cou_cent_value[20] = "53";
			array_mesure_cou_cent_value[21] = "54";
			array_mesure_cou_cent_value[22] = "55";
			array_mesure_cou_cent_value[23] = "56";
			array_mesure_cou_cent_value[24] = "57";
			array_mesure_cou_cent_value[25] = "58";
			array_mesure_cou_cent_value[26] = "59";
			array_mesure_cou_cent_value[27] = "60";
			array_mesure_cou_cent_value[28] = "61";
			array_mesure_cou_cent_value[29] = "62";
			array_mesure_cou_cent_value[30] = "63";
		
		
		
		
		
		
		
		
			array_mesure_cou_inch_value[0] = "Normal";
			array_mesure_cou_inch_value[1] = '13,4';
			array_mesure_cou_inch_value[2] = '13,8';
			array_mesure_cou_inch_value[3] = '14,2';
			array_mesure_cou_inch_value[4] = '14,6';
			array_mesure_cou_inch_value[5] = '15';
			array_mesure_cou_inch_value[6] = '15,4';
			array_mesure_cou_inch_value[7] = '15,7';
			array_mesure_cou_inch_value[8] = '16,1';
			array_mesure_cou_inch_value[9] = '16,5';
			array_mesure_cou_inch_value[10] = '16,9';
			array_mesure_cou_inch_value[11] = '17,3';
			array_mesure_cou_inch_value[12] = '17,7';
			array_mesure_cou_inch_value[13] = '18,1';
			array_mesure_cou_inch_value[14] = '18,5';
			array_mesure_cou_inch_value[15] = '18,9';
			array_mesure_cou_inch_value[16] = '19,3';
			array_mesure_cou_inch_value[17] = '19,7';
			array_mesure_cou_inch_value[18] = '20,1';
			array_mesure_cou_inch_value[19] = '20,5';
			array_mesure_cou_inch_value[20] = '20,9';
			array_mesure_cou_inch_value[21] = '21,3';
			array_mesure_cou_inch_value[22] = '21,7';
			array_mesure_cou_inch_value[23] = '22';
			array_mesure_cou_inch_value[24] = '22,4';
			array_mesure_cou_inch_value[25] = '22,8';
			array_mesure_cou_inch_value[26] = '23,2';
			array_mesure_cou_inch_value[27] = '23,6';
			array_mesure_cou_inch_value[28] = '24';
			array_mesure_cou_inch_value[29] = '24,4';
			array_mesure_cou_inch_value[30] = '24,8';
			
			
			
			
			
			var array_taillestd_cm = new Array();
			var array_taillestd_inch = new Array();
			var array_taillestd_cm_value = new Array();
			var array_taillestd_inch_value = new Array();
			
			
		
			array_taillestd_cm_value[0] = "34";
			array_taillestd_cm_value[1] = "35";
			array_taillestd_cm_value[2] = "36";
			array_taillestd_cm_value[3] = "37";
			array_taillestd_cm_value[4] = "38";
			array_taillestd_cm_value[5] = "39";
			array_taillestd_cm_value[6] = "40";
			array_taillestd_cm_value[7] = "41";
			array_taillestd_cm_value[8] = "42";
			array_taillestd_cm_value[9] = "43";
			array_taillestd_cm_value[10] = "44";
			array_taillestd_cm_value[11] = "45";
			array_taillestd_cm_value[12] = "46";
			array_taillestd_cm_value[13] = "47";
			array_taillestd_cm_value[14] = "48";
			array_taillestd_cm_value[15] = "49";
			array_taillestd_cm_value[16] = "50";
			array_taillestd_cm_value[17] = "51";
			array_taillestd_cm_value[18] = "52";
			array_taillestd_cm_value[19] = "53";
			array_taillestd_cm_value[20] = "54";
			array_taillestd_cm_value[21] = "55";
			array_taillestd_cm_value[22] = "56";
			array_taillestd_cm_value[23] = "57";
			array_taillestd_cm_value[24] = "58";
			array_taillestd_cm_value[25] = "59";
			array_taillestd_cm_value[26] = "60";
			array_taillestd_cm_value[27] = "61";
			array_taillestd_cm_value[28] = "62";
			array_taillestd_cm_value[29] = "63";
			
			array_taillestd_cm[0] = "34";
			array_taillestd_cm[1] = "35";
			array_taillestd_cm[2] = "36";
			array_taillestd_cm[3] = "37";
			array_taillestd_cm[4] = "38";
			array_taillestd_cm[5] = "39";
			array_taillestd_cm[6] = "40";
			array_taillestd_cm[7] = "41";
			array_taillestd_cm[8] = "42";
			array_taillestd_cm[9] = "43";
			array_taillestd_cm[10] = "44";
			array_taillestd_cm[11] = "45";
			array_taillestd_cm[12] = "46";
			array_taillestd_cm[13] = "47";
			array_taillestd_cm[14] = "48";
			array_taillestd_cm[15] = "49";
			array_taillestd_cm[16] = "50";
			array_taillestd_cm[17] = "51";
			array_taillestd_cm[18] = "52";
			array_taillestd_cm[19] = "53";
			array_taillestd_cm[20] = "54";
			array_taillestd_cm[21] = "55";
			array_taillestd_cm[22] = "56";
			array_taillestd_cm[23] = "57";
			array_taillestd_cm[24] = "58";
			array_taillestd_cm[25] = "59";
			array_taillestd_cm[26] = "60";
			array_taillestd_cm[27] = "61";
			array_taillestd_cm[28] = "62";
			array_taillestd_cm[29] = "63";
			
						
					
		
			array_taillestd_inch_value[0] = '13,4';
			array_taillestd_inch_value[1] = '13,8';
			array_taillestd_inch_value[2] = '14,2';
			array_taillestd_inch_value[3] = '14,6';
			array_taillestd_inch_value[4] = '15';
			array_taillestd_inch_value[5] = '15,4';
			array_taillestd_inch_value[6] = '15,7';
			array_taillestd_inch_value[7] = '16,1';
			array_taillestd_inch_value[8] = '16,5';
			array_taillestd_inch_value[9] = '16,9';
			array_taillestd_inch_value[10] = '17,3';
			array_taillestd_inch_value[11] = '17,7';
			array_taillestd_inch_value[12] = '18,1';
			array_taillestd_inch_value[13] = '18,5';
			array_taillestd_inch_value[14] = '18,9';
			array_taillestd_inch_value[15] = '19,3';
			array_taillestd_inch_value[16] = '19,7';
			array_taillestd_inch_value[17] = '20,1';
			array_taillestd_inch_value[18] = '20,5';
			array_taillestd_inch_value[19] = '20,9';
			array_taillestd_inch_value[20] = '21,3';
			array_taillestd_inch_value[21] = '21,7';
			array_taillestd_inch_value[22] = '22';
			array_taillestd_inch_value[23] = '22,4';
			array_taillestd_inch_value[24] = '22,8';
			array_taillestd_inch_value[25] = '23,2';
			array_taillestd_inch_value[26] = '23,6';
			array_taillestd_inch_value[27] = '24';
			array_taillestd_inch_value[28] = '24,4';
			array_taillestd_inch_value[29] = '24,8';
			
			
			
			
			
		
			array_taillestd_inch[0] = '13,4';
			array_taillestd_inch[1] = '13,8';
			array_taillestd_inch[2] = '14,2';
			array_taillestd_inch[3] = '14,6';
			array_taillestd_inch[4] = '15';
			array_taillestd_inch[5] = '15,4';
			array_taillestd_inch[6] = '15,7';
			array_taillestd_inch[7] = '16,1';
			array_taillestd_inch[8] = '16,5';
			array_taillestd_inch[9] = '16,9';
			array_taillestd_inch[10] = '17,3';
			array_taillestd_inch[11] = '17,7';
			array_taillestd_inch[12] = '18,1';
			array_taillestd_inch[13] = '18,5';
			array_taillestd_inch[14] = '18,9';
			array_taillestd_inch[15] = '19,3';
			array_taillestd_inch[16] = '19,7';
			array_taillestd_inch[17] = '20,1';
			array_taillestd_inch[18] = '20,5';
			array_taillestd_inch[19] = '20,9';
			array_taillestd_inch[20] = '21,3';
			array_taillestd_inch[21] = '21,7';
			array_taillestd_inch[22] = '22';
			array_taillestd_inch[23] = '22,4';
			array_taillestd_inch[24] = '22,8';
			array_taillestd_inch[25] = '23,2';
			array_taillestd_inch[26] = '23,6';
			array_taillestd_inch[27] = '24';
			array_taillestd_inch[28] = '24,4';
			array_taillestd_inch[29] = '24,8';
			
			
			
			
			
			
			
			
			
			
			
			

			var array_taillestd_veste_cent = new Array();
			var array_taillestd_veste_inch = new Array();
			var array_taillestd_veste_cent_value = new Array();
			var array_taillestd_veste_inch_value = new Array();
			
		
			array_taillestd_veste_cent[0] = "46  ";
			array_taillestd_veste_cent[1] = "48  ";
			array_taillestd_veste_cent[2] = "50  ";
			array_taillestd_veste_cent[3] = "52  ";
			array_taillestd_veste_cent[4] = "54  ";
			array_taillestd_veste_cent[5] = "56  ";
			array_taillestd_veste_cent[6] = "58  ";
			array_taillestd_veste_cent[7] = "60  ";
			array_taillestd_veste_cent[8] = "62  ";
		
			
		
			array_taillestd_veste_inch[0] = '18,1';
			array_taillestd_veste_inch[1] = '18,9';
			array_taillestd_veste_inch[2] = '19,7';
			array_taillestd_veste_inch[3] = '20,5';
			array_taillestd_veste_inch[4] = '21,3';
			array_taillestd_veste_inch[5] = '22';
			array_taillestd_veste_inch[6] = '22,8';
			array_taillestd_veste_inch[7] = '23,6';
			array_taillestd_veste_inch[8] = '24,4';
		
			
			array_taillestd_veste_cent_value[0] = "46  ";
			array_taillestd_veste_cent_value[1] = "48  ";
			array_taillestd_veste_cent_value[2] = "50  ";
			array_taillestd_veste_cent_value[3] = "52  ";
			array_taillestd_veste_cent_value[4] = "54  ";
			array_taillestd_veste_cent_value[5] = "56  ";
			array_taillestd_veste_cent_value[6] = "58  ";
			array_taillestd_veste_cent_value[7] = "60  ";
			array_taillestd_veste_cent_value[8] = "62  ";
		
		
			array_taillestd_veste_inch_value[0] = '18,1';
			array_taillestd_veste_inch_value[1] = '18,9';
			array_taillestd_veste_inch_value[2] = '19,7';
			array_taillestd_veste_inch_value[3] = '20,5';
			array_taillestd_veste_inch_value[4] = '21,3';
			array_taillestd_veste_inch_value[5] = '22';
			array_taillestd_veste_inch_value[6] = '22,8';
			array_taillestd_veste_inch_value[7] = '23,6';
			array_taillestd_veste_inch_value[8] = '24,4';
			
			
						var array_taillestd_pant_cm = new Array();
			var array_taillestd_pant_inch = new Array();
			var array_taillestd_pant_cm_value = new Array();
			var array_taillestd_pant_inch_value = new Array();
			
		
			array_taillestd_pant_cm_value[0] = "38";
			array_taillestd_pant_cm_value[1] = "40";
			array_taillestd_pant_cm_value[2] = "42";
			array_taillestd_pant_cm_value[3] = "44";
			array_taillestd_pant_cm_value[4] = "46";
			array_taillestd_pant_cm_value[5] = "48";
			array_taillestd_pant_cm_value[6] = "50";
			array_taillestd_pant_cm_value[7] = "52";
			array_taillestd_pant_cm_value[8] = "54";
			array_taillestd_pant_cm_value[9] = "56";
			
			
			array_taillestd_pant_cm[0] = "38";
			array_taillestd_pant_cm[1] = "40";
			array_taillestd_pant_cm[2] = "42";
			array_taillestd_pant_cm[3] = "44";
			array_taillestd_pant_cm[4] = "46";
			array_taillestd_pant_cm[5] = "48";
			array_taillestd_pant_cm[6] = "50";
			array_taillestd_pant_cm[7] = "52";
			array_taillestd_pant_cm[8] = "54";
			array_taillestd_pant_cm[9] = "56";
			
			
			
			
		
			array_taillestd_pant_inch_value[0] = '15';
			array_taillestd_pant_inch_value[1] = '15,7';
			array_taillestd_pant_inch_value[2] = '16,5';
			array_taillestd_pant_inch_value[3] = '17,3';
			array_taillestd_pant_inch_value[4] = '18,1';
			array_taillestd_pant_inch_value[5] = '18,9';
			array_taillestd_pant_inch_value[6] = '19,7';
			array_taillestd_pant_inch_value[7] = '20,5';
			array_taillestd_pant_inch_value[8] = '21,3';
			array_taillestd_pant_inch_value[9] = '22';
	
			
			
			
			
			array_taillestd_pant_inch[0] = '15';
			array_taillestd_pant_inch[1] = '15,7';
			array_taillestd_pant_inch[2] = '16,5';
			array_taillestd_pant_inch[3] = '17,3';
			array_taillestd_pant_inch[4] = '18,1';
			array_taillestd_pant_inch[5] = '18,9';
			array_taillestd_pant_inch[6] = '19,7';
			array_taillestd_pant_inch[7] = '20,5';
			array_taillestd_pant_inch[8] = '21,3';
			array_taillestd_pant_inch[9] = '22';
			
		
			
			
			
			
			
			
			var array_mesure_manchL_Inch = new Array();
			var array_mesure_manchC_Inch = new Array();
			var array_mesure_Dos_Inch = new Array();
			
			array_mesure_manchL_Inch[0] = "trés court -1,6 inch";
			array_mesure_manchL_Inch[1] = "court -0,8 inch";
			array_mesure_manchL_Inch[2] = "Normale";
			array_mesure_manchL_Inch[3] = "long +0,8 inch";
			array_mesure_manchL_Inch[4] = "trés long +1,6 inch";
			
			array_mesure_manchC_Inch[0] = "trés court -1,6 inch";
			array_mesure_manchC_Inch[1] = "court -0,8 inch";
			array_mesure_manchC_Inch[2] = "Normale";
			array_mesure_manchC_Inch[3] = "long +0,8 inch";
			array_mesure_manchC_Inch[4] = "trés long +1,6 inch";
			
			array_mesure_Dos_Inch[0] = "trés court -1,6 inch";
			array_mesure_Dos_Inch[1] = "court -0,8 inch";
			array_mesure_Dos_Inch[2] = "Normale";
			array_mesure_Dos_Inch[3] = "long +0,8 inch";
			array_mesure_Dos_Inch[4] = "trés long +1,6 inch";
			
			var array_mesure_manchL_cm = new Array();
			var array_mesure_manchC_cm = new Array();
			var array_mesure_Dos_cm = new Array();
			
			array_mesure_manchL_cm[0] = "trés court -4 cm ";
			array_mesure_manchL_cm[1] = "court -2 cm ";
			array_mesure_manchL_cm[2] = "Normale";
			array_mesure_manchL_cm[3] = "long +2 cm ";
			array_mesure_manchL_cm[4] = "trés long  +4 cm ";
			
			array_mesure_manchC_cm[0] = "trés court -4 cm ";
			array_mesure_manchC_cm[1] = "court -2 cm ";
			array_mesure_manchC_cm[2] = "Normale";
			array_mesure_manchC_cm[3] = "long +2 cm ";
			array_mesure_manchC_cm[4] = "trés long  +4 cm ";
			
			array_mesure_Dos_cm[0] = "trés court -4 cm ";
			array_mesure_Dos_cm[1] = "court -2 cm ";
			array_mesure_Dos_cm[2] = "Normale";
			array_mesure_Dos_cm[3] = "long +2 cm ";
			array_mesure_Dos_cm[4] = "trés long  +4 cm ";
			
			


  
function syst_onclick(input) 
{	
		if (input == "inch")
		{
					syst = "inch";
				
					for (i=0; i <= 30; i++)
					{
						document.mes_std.mesure_cou.options[i].text = array_mesure_cou_inch[i];
						document.mes_std.mesure_cou.options[i].value = array_mesure_cou_inch_value[i];
					}
					for (i=0; i <= 29; i++)
					{	
						document.mes_std.taillestd.options[i].text = array_taillestd_inch[i];
						document.mes_std.taillestd.options[i].value = array_taillestd_inch_value[i];
					}
					for (i=0; i <= 4; i++)
					{
						document.mes_std.mesure_manchL.options[i].text = array_mesure_manchL_Inch[i];
						document.mes_std.mesure_manchC.options[i].text = array_mesure_manchC_Inch[i];
						document.mes_std.mesure_Dos.options[i].text = array_mesure_Dos_Inch[i];
						
					}
		}
			
		if (input == "cm")
			{
				syst = "cm";
			
				for (i=0; i <= 30; i++)
				{
					document.mes_std.mesure_cou.options[i].text = array_mesure_cou_cent[i];
					document.mes_std.mesure_cou.options[i].value = array_mesure_cou_cent_value[i];
				}
				for (i=0; i <= 29; i++)
				{
					document.mes_std.taillestd.options[i].text = array_taillestd_cm[i];
					document.mes_std.taillestd.options[i].value = array_taillestd_cm_value[i];
				}
				for (i=0; i <= 4; i++)
					{
						
						document.mes_std.mesure_manchL.options[i].text = array_mesure_manchL_cm[i];
						document.mes_std.mesure_manchC.options[i].text = array_mesure_manchC_cm[i];
						document.mes_std.mesure_Dos.options[i].text = array_mesure_Dos_cm[i];
					}
			}

}

		
			


function syst_onclick_std_suit(input) 
{	
		if (input == "inch")
		{
					syst = "inch";
				
					for (i=0; i <= 8; i++)
					{
						document.mes_std.taillestd_veste.options[i].text = array_taillestd_veste_inch[i];
						document.mes_std.taillestd_veste.options[i].value = array_taillestd_veste_inch_value[i];
					}
					for (i=0; i <= 9; i++)
					{	
						document.mes_std.taillestd_pant.options[i].text = array_taillestd_pant_inch[i];
						document.mes_std.taillestd_pant.options[i].value = array_taillestd_pant_inch_value[i];
					}
					for (i=0; i <= 4; i++)
					{
						document.mes_std.mesure_manchL.options[i].text = array_mesure_manchL_Inch[i];
						document.mes_std.mesure_manchC.options[i].text = array_mesure_manchC_Inch[i];
					
						
					}
		}
			
		if (input == "cm")
			{
				syst = "cm";
			
				for (i=0; i <= 8; i++)
				{
					document.mes_std.taillestd_veste.options[i].text = array_taillestd_veste_cent[i];
					document.mes_std.taillestd_veste.options[i].value = array_taillestd_veste_cent_value[i];
				}
				for (i=0; i <= 9; i++)
				{
					document.mes_std.taillestd_pant.options[i].text = array_taillestd_pant_cm[i];
					document.mes_std.taillestd_pant.options[i].value = array_taillestd_pant_cm_value[i];
				}
				for (i=0; i <= 4; i++)
					{
						
						document.mes_std.mesure_manchL.options[i].text = array_mesure_manchL_cm[i];
						document.mes_std.mesure_manchC.options[i].text = array_mesure_manchC_cm[i];
					
					}
			}

}




function syst_onclick_chemise(input)
{
	
	if (input == "Inch")
		{
			
			document.mes_chem.syst_name1.value = "Inch";
			document.mes_chem.syst_name2.value = "Inch";
			document.mes_chem.syst_name3.value = "Inch";
			document.mes_chem.syst_name4.value = "Inch";
			document.mes_chem.syst_name5.value = "Inch";
			document.mes_chem.syst_name6.value = "Inch";
			document.mes_chem.syst_name7.value = "Inch";
			document.mes_chem.syst_name8.value = "Inch";
			document.mes_chem.syst_name9.value = "Inch";
			document.mes_chem.syst_name10.value = "Inch";
			
			
			
		}
		
		
	if (input == "Cm")
			{
			document.mes_chem.syst_name1.value = "Cm";
			document.mes_chem.syst_name2.value = "Cm";
			document.mes_chem.syst_name3.value = "Cm";
			document.mes_chem.syst_name4.value = "Cm";
			document.mes_chem.syst_name5.value = "Cm";
			document.mes_chem.syst_name6.value = "Cm";
			document.mes_chem.syst_name7.value = "Cm";
			document.mes_chem.syst_name8.value = "Cm";
			document.mes_chem.syst_name9.value = "Cm";
			document.mes_chem.syst_name10.value = "Cm";
			
			
			
			}

}



function syst_onclick_exacte(input)
{
	if (input == "Inch")
		{
			
			document.mes_ex.syst_name1.value = "Inch";
			document.mes_ex.syst_name2.value = "Inch";
			document.mes_ex.syst_name3.value = "Inch";
			document.mes_ex.syst_name4.value = "Inch";
			document.mes_ex.syst_name5.value = "Inch";
			document.mes_ex.syst_name6.value = "Inch";
			document.mes_ex.syst_name7.value = "Inch";
			document.mes_ex.syst_name8.value = "Inch";
			document.mes_ex.syst_name9.value = "Inch";
			document.mes_ex.syst_name10.value = "Inch";
		}
		
		
	if (input == "Cm")
			{
			document.mes_ex.syst_name1.value = "Cm";
			document.mes_ex.syst_name2.value = "Cm";
			document.mes_ex.syst_name3.value = "Cm";
			document.mes_ex.syst_name4.value = "Cm";
			document.mes_ex.syst_name5.value = "Cm";
			document.mes_ex.syst_name6.value = "Cm";
			document.mes_ex.syst_name7.value = "Cm";
			document.mes_ex.syst_name8.value = "Cm";
			document.mes_ex.syst_name9.value = "Cm";
			document.mes_ex.syst_name10.value = "Cm";
			}

}








function syst_onclick_manches(input)
{
	if (input == "long")
		{
			
			document.images["manches"].src="images_pro/mesures/chemise/mesure_sleeve_long.jpg";
			document.mes_chem.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_short_poignet;
			document.mes_chem.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_longe;
		}
		
		
	if (input == "court")
			{
				document.images["manches"].src="images_pro/mesures/chemise/mesure_sleeve_court.jpg";
				document.mes_chem.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_manches_i;
				document.mes_chem.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_end_short;
			}

}

function admin_syst_onclick_manches(input)
{
	if (input == "long")
		{
			
			document.images["manches"].src="../images_pro/mesures/chemise/mesure_sleeve_long.jpg";
			document.mes_chem.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_short_poignet;
			document.mes_chem.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_longe;
		}
		
		
	if (input == "court")
			{
				document.images["manches"].src="../images_pro/mesures/chemise/mesure_sleeve_court.jpg";
				document.mes_chem.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_manches_i;
				document.mes_chem.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_end_short;
			}

}


function syst_onclick_manches_ex(input)
{
	if (input == "long")
		{
			
			document.images["manches"].src="images_pro/mesures/exactes/mesures_bras_long.jpg";
			document.mes_ex.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_short_jointure;
			document.mes_ex.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_longe;
		}
		
		
	if (input == "court")
			{
				document.images["manches"].src="images_pro/mesures/exactes/mesures_bras_long.jpg";
				document.mes_ex.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_short_end_sleeves;
				document.mes_ex.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_end_short;
			}

}

function admin_syst_onclick_manches_ex(input)
{
	if (input == "long")
		{
			
			document.images["manches"].src="../images_pro/mesures/exactes/mesures_bras_long.jpg";
			document.mes_ex.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_short_jointure;
			document.mes_ex.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_longe;
		}
		
		
	if (input == "court")
			{
				document.images["manches"].src="../images_pro/mesures/exactes/mesures_bras_long.jpg";
				document.mes_ex.syst_name_manche.value = lang_js_pernac_verify_mes_sleeves_long_short_end_sleeves;
				document.mes_ex.manches_type.value = lang_js_pernac_verify_mes_sleeves_long_short_end_short;
			}

}





function validation_std() 
{  
				       return true;
}

function validation_std_suit() 
{  
				       return true;
}



function validation_silou() 
{  
				        if(document.silou.taille.value == '') 
								{ 
				        alert (lang_js_pernac_validation_silou_msg1); 
				        document.silou.taille.focus(); 
				        return false; 
				    		}
				        
				    		if((document.silou.taille.value < 100) || (document.silou.taille.value > 220)) 
								{ 
				        alert (lang_js_pernac_validation_silou_msg2); 
				        document.silou.taille.focus(); 
				        return false; 
				    		}
				    		
				    		
				       	if(document.silou.poids.value == '') 
								{ 
				        alert (lang_js_pernac_validation_silou_msg3); 
				        document.silou.poids.focus(); 
				        return false; 
				    		}
				    		
				    		if((document.silou.poids.value < 30) || (document.silou.poids.value > 180)) 
								{ 
				        alert (lang_js_pernac_validation_silou_msg4); 
				        document.silou.poids.focus(); 
				        return false; 
				    		}
								
								else {return true;}
}




function validation_ex() 
{  
				      
				    		
				    		if(document.mes_ex.cou.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg1); 
								   document.mes_ex.cou.focus(); 
								    return false; 
								  }
								  
								if(document.mes_ex.poitrine.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg2); 
								   document.mes_ex.poitrine.focus(); 
								    return false; 
								  }  
								 
								if(document.mes_ex.carrure.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg3); 
								   document.mes_ex.carrure.focus(); 
								    return false; 
								  }    
								  
								 if(document.mes_ex.dos.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg4); 
								   document.mes_ex.dos.focus(); 
								    return false; 
								  }  
								  
								 if(document.mes_ex.ceinture.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg5); 
								   document.mes_ex.ceinture.focus(); 
								    return false; 
								  }      
								  
								  if(document.mes_ex.bassin.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg6); 
								   document.mes_ex.bassin.focus(); 
								    return false; 
								  }       
								  
								  if(document.mes_ex.poignets.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg7); 
								   document.mes_ex.poignets.focus(); 
								    return false; 
								  }       
								  
								  if(document.mes_ex.mancheD.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg8); 
								   document.mes_ex.mancheD.focus(); 
								    return false; 
								  } 
								  if(document.mes_ex.mancheG.value == '') 
									{ 
								   alert (lang_js_pernac_validation_ex_msg9); 
								   document.mes_ex.mancheG.focus(); 
								    return false; 
								  }            
								  
								   if(document.mes_ex.tour_bras.value  == '') 
											{ 
										   alert (lang_js_pernac_validation_ex_msg10); 
										   document.mes_ex.tour_bras.focus(); 
										    return false; 
										  }       
										  
									if(document.mes_ex.epaulette.value  == '') 
											{ 
										   alert (lang_js_pernac_validation_ex_msg11); 
										   document.mes_ex.epaulette.focus(); 
										    return false; 
										  }       	  
								  
								  
								  
								  
						    		
				    		if(document.mes_ex.syst[0].checked)
				    		{
						    		
						    		if(document.mes_ex.cou.value < 30) 
												{ 
								        alert (lang_js_pernac_validation_ex_msg12); 
								        document.mes_ex.cou.focus(); 
								        return false; 
								    		}
								    		
								    		
								    if(document.mes_ex.cou.value > 65) 
												{ 
								        alert (lang_js_pernac_validation_ex_msg13); 
								        document.mes_ex.cou.focus(); 
								        return false; 
								    		}
								    		
								    		
								    if(document.mes_ex.poitrine.value < 50 || document.mes_ex.poitrine.value > 200) 
												{ 
											   alert (lang_js_pernac_validation_ex_msg14); 
											   document.mes_ex.poitrine.focus(); 
											    return false; 
											  }  
								    
								     if(document.mes_ex.carrure.value < 35 || document.mes_ex.carrure.value > 90) 
												{ 
											   alert (lang_js_pernac_validation_ex_msg15); 
											   document.mes_ex.carrure.focus(); 
											    return false; 
											  }  		
											  
											  
											  
											  
											 if(document.mes_ex.dos.value < 50 || document.mes_ex.dos.value > 110) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg16); 
										   document.mes_ex.dos.focus(); 
										    return false; 
										  }  
										  
										 if(document.mes_ex.ceinture.value < 50 || document.mes_ex.ceinture.value > 250) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg17); 
										   document.mes_ex.ceinture.focus(); 
										    return false; 
										  }      
										  
										  if(document.mes_ex.bassin.value < 50 || document.mes_ex.bassin.value > 250) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg18); 
										   document.mes_ex.bassin.focus(); 
										    return false; 
										  }       
										  
										  if(document.mes_ex.poignets.value < 10 || document.mes_ex.poignets.value > 40) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg19); 
										   document.mes_ex.poignets.focus(); 
										    return false; 
										  }       
										  
										  
										  
										  
										   if(document.mes_ex.manches_type[0].checked)
								    		{
												   if(document.mes_ex.mancheD.value < 40 || document.mes_ex.mancheD.value > 80) 
														{ 
													   alert (lang_js_pernac_validation_ex_msg20); 
													   document.mes_ex.mancheD.focus(); 
													    return false; 
													  } 
													  if(document.mes_ex.mancheG.value < 40 || document.mes_ex.mancheG.value > 80) 
														{ 
													   alert (lang_js_pernac_validation_ex_msg21); 
													   document.mes_ex.mancheG.focus(); 
													    return false; 
													  }   
													  
												} 
												
											 if(document.mes_ex.manches_type[1].checked)
								    			{         
												  
												  	   if(document.mes_ex.mancheD.value < 14 || document.mes_ex.mancheD.value > 40) 
														{ 
													   alert (lang_js_pernac_validation_ex_msg22); 
													   document.mes_ex.mancheD.focus(); 
													    return false; 
													  } 
													  if(document.mes_ex.mancheG.value < 14 || document.mes_ex.mancheG.value > 40) 
														{ 
													   alert (lang_js_pernac_validation_ex_msg23); 
													   document.mes_ex.mancheG.focus(); 
													    return false; 
													  }   
													}
													
													
													
													
										   if(document.mes_ex.tour_bras.value < 16 || document.mes_ex.tour_bras.value > 60) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg24); 
										   document.mes_ex.tour_bras.focus(); 
										    return false; 
										  }       
										  
										   if(document.mes_ex.epaulette.value < 10 || document.mes_ex.epaulette.value > 40) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg25); 
										   document.mes_ex.epaulette.focus(); 
										    return false; 
										  }       	  
								    		
							  }
							  
							  if(document.mes_ex.syst[1].checked)
				    		{
						    	
								    if(document.mes_ex.cou.value > 26) 
										{ 
						        alert (lang_js_pernac_validation_ex_msg26); 
						        document.mes_ex.cou.focus(); 
						        return false; 
						    		}		
						    		
						    		if(document.mes_ex.cou.value < 11) 
										{ 
						        alert (lang_js_pernac_validation_ex_msg27); 
						        document.mes_ex.cou.focus(); 
						        return false; 
						    		}
						    		
						    				
								    if(document.mes_ex.poitrine.value < 8 || document.mes_ex.poitrine.value > 80) 
												{ 
											   alert (lang_js_pernac_validation_ex_msg28); 
											   document.mes_ex.poitrine.focus(); 
											    return false; 
											  }  
								    
								     if(document.mes_ex.carrure.value < 14 || document.mes_ex.carrure.value > 36) 
												{ 
											   alert (lang_js_pernac_validation_ex_msg29); 
											   document.mes_ex.carrure.focus(); 
											    return false; 
											  }  		
											  
											if(document.mes_ex.dos.value < 19  || document.mes_ex.dos.value >43) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg30); 
										   document.mes_ex.dos.focus(); 
										    return false; 
										  }  
										  
										 if(document.mes_ex.ceinture.value < 8  || document.mes_ex.ceinture.value > 100) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg31); 
										   document.mes_ex.ceinture.focus(); 
										    return false; 
										  }      
										  
										  if(document.mes_ex.bassin.value < 8   || document.mes_ex.bassin.value > 100) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg32); 
										   document.mes_ex.bassin.focus(); 
										    return false; 
										  }       
										  
										  if(document.mes_ex.poignets.value < 4  || document.mes_ex.poignets.value > 16) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg33); 
										   document.mes_ex.poignets.focus(); 
										    return false; 
										  }       
										  
										 
						    		   if(document.mes_ex.manches_type[0].checked)
								    		{
													if(document.mes_ex.mancheD.value < 15 || document.mes_ex.mancheD.value >32) 
														{ 
													   alert (lang_js_pernac_validation_ex_msg34); 
													   document.mes_ex.mancheD.focus(); 
													   return false; 
													  } 
													if(document.mes_ex.mancheG.value < 15 || document.mes_ex.mancheG.value >32) 
														{ 
													   alert (lang_js_pernac_validation_ex_msg35); 
													   document.mes_ex.mancheG.focus(); 
													   return false; 
													  }             
												} 
												
											 if(document.mes_ex.manches_type[1].checked)
								    			{         
												  
														if(document.mes_ex.mancheD.value < 5 || document.mes_ex.mancheD.value > 16) 
															{ 
													   alert (lang_js_pernac_validation_ex_msg36); 
													   document.mes_ex.mancheD.focus(); 
													   return false; 
													 		} 
													if(document.mes_ex.mancheG.value < 5 || document.mes_ex.mancheG.value > 16) 
															{ 
													  	 alert (lang_js_pernac_validation_ex_msg37); 
													   	document.mes_ex.mancheG.focus(); 
													   	return false; 
													  	}             
													}
													
						    		
						    		
						    		
						    			if(document.mes_ex.tour_bras.value < 6 || document.mes_ex.tour_bras.value > 24) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg38); 
										   document.mes_ex.tour_bras.focus(); 
										    return false; 
										  }       
										  
										  if(document.mes_ex.epaulette.value < 4 || document.mes_ex.epaulette.value > 16) 
											{ 
										   alert (lang_js_pernac_validation_ex_msg39); 
										   document.mes_ex.epaulette.focus(); 
										    return false; 
										  }       	  
								}
						  
						  
								else {return true;}
}









function syncroniz_mesures_from_shirt()
{
	
	
	if (typeof(document.getElementsByName("sync_mes")[0]) != "undefined" )
	{
	
					if(document.mes_ex.sync_mes.checked==false)
					{
							var obj2;
						
							syst_onclick_exacte_coat(document.mes_ex.syst_chem_corp.value);
							
							if(document.mes_ex.syst_chem_corp.value=="Cm")
							{
									var obj2 = document.getElementById("syst_cm");
									var obj3 = document.getElementById("syst_inch");
									obj2.checked=true;
									obj3.checked=false;
							}
						else
							{
									var obj2 = document.getElementById("syst_cm");
									var obj3 = document.getElementById("syst_inch");
									obj2.checked=false;
									obj3.checked=true;
							}
							
							
							document.mes_ex.cou.value=document.mes_ex.cou_chem_corp.value;
						
							
							document.mes_ex.poitrine.value=document.mes_ex.poitrine_chem_corp.value;
							
							
							document.mes_ex.carrure.value=document.mes_ex.carrure_chem_corp.value;
							
							
							document.mes_ex.dos.value=document.mes_ex.dos_chem_corp.value;
							
							document.mes_ex.ceinture.value=document.mes_ex.ceinture_chem_corp.value;
						
							document.mes_ex.bassin.value=document.mes_ex.bassin_chem_corp.value;
							
							
							document.mes_ex.poignets.value=document.mes_ex.poignets_chem_corp.value;
						
							
							document.mes_ex.mancheD.value=document.mes_ex.mancheD_chem_corp.value;
						
							document.mes_ex.mancheG.value=document.mes_ex.mancheG_chem_corp.value;
							
							
							document.mes_ex.tour_bras.value=document.mes_ex.tour_bras_chem_corp.value;
							
							
							document.mes_ex.epaulette.value=document.mes_ex.epaulette_chem_corp.value;
							
							
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.cou);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.poitrine);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.carrure);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.dos);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.ceinture);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.bassin);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.poignets);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.mancheD);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.tour_bras);
							verify_mesures_values_shirt_for_red_hilighting(document.mes_ex.epaulette);
						
					}
					if(document.mes_ex.sync_mes.checked==true)
					{
						var obj2;
							
							document.mes_ex.cou.value="0.00";
							
							obj2 = document.getElementById("div_cou");
							obj2.className = "boldT_red";
							
							document.mes_ex.poitrine.value="0.00";
							obj2 = document.getElementById("div_poitrine");
							obj2.className = "boldT_red";
							
							document.mes_ex.carrure.value="0.00";
							obj2 = document.getElementById("div_carrure");
							obj2.className = "boldT_red";
							
							
							document.mes_ex.dos.value="0.00";
							obj2 = document.getElementById("div_dos");
							obj2.className = "boldT_red";
							
							
							
							document.mes_ex.ceinture.value="0.00";
							obj2 = document.getElementById("div_tour_taille");
							obj2.className = "boldT_red";
							
							document.mes_ex.bassin.value="0.00";
							obj2 = document.getElementById("div_bassin");
							obj2.className = "boldT_red";
							
							document.mes_ex.poignets.value="0.00";
							obj2 = document.getElementById("div_poignets");
							obj2.className = "boldT_red";
							
							document.mes_ex.mancheD.value="0.00";
							obj2 = document.getElementById("div_manches");
							obj2.className = "boldT_red";
							
							document.mes_ex.tour_bras.value="0.00";
							obj2 = document.getElementById("div_tour_bras");
							obj2.className = "boldT_red";
							
							
							document.mes_ex.epaulette.value="0.00";
							obj2 = document.getElementById("div_epaulettes");
							obj2.className = "boldT_red";
					
					}
		}			
	
}



function verif_nombre_shirt_measures(champ)
{
	
	var chiffres = new RegExp('[.0123456789]'); 
								var verif;
								
								for(x = 0; x < champ.value.length; x++)
								{
								verif = chiffres.test(champ.value.charAt(x));
								
								if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
								}
	
	
		verify_mesures_values_shirt_for_red_hilighting(champ);								
}














function verify_mesures_values_shirt_for_red_hilighting(champ)
{
	
	var obj2;
	 
						    		
				    		if(document.mes_ex.syst[0].checked)
				    		{
						    		
								    		
								    		if(champ.name=="cou")
								    		{
										    		
										    		
										    		if(document.mes_ex.cou.value < 30 || document.mes_ex.cou.value > 65) 
														{ 							        
										        		obj2 = document.getElementById("div_cou");
																obj2.className = "boldT_red";
										    		}
													else
														{
																obj2 = document.getElementById("div_cou");
																obj2.className = "boldT";
															 
														}								    
										  	}
									
									
									
										    if(champ.name=="poitrine")
								    		{		
												    if(document.mes_ex.poitrine.value < 50 || document.mes_ex.poitrine.value > 200) 
																{ 
															    obj2 = document.getElementById("div_poitrine");
																	obj2.className = "boldT_red"; 
															  }  
		                            else
														    {
																	obj2 = document.getElementById("div_poitrine");
																	obj2.className = "boldT";
														    }																  
											 }
											 
											 
											 
											 
									if(champ.name=="carrure")
								  { 
											 
								     if(document.mes_ex.carrure.value < 35 || document.mes_ex.carrure.value > 90) 
												{ 
											    obj2 = document.getElementById("div_carrure");
													obj2.className = "boldT_red"; 
											  } 
											else{
										     	obj2 = document.getElementById("div_carrure");
													obj2.className = "boldT"; 
												} 		
											  
									}		  
											  
											  
									if(champ.name=="dos")
								  {
											 if(document.mes_ex.dos.value < 50 || document.mes_ex.dos.value > 110) 
												{ 
											      obj2 = document.getElementById("div_dos");
													  obj2.className = "boldT_red"; 
										  	}  
										  else
										  	{
										  		  obj2 = document.getElementById("div_dos");
													  obj2.className = "boldT"; 
										  	}
										  
									}  
										  
										  
									if(champ.name=="ceinture")
								  { 										  
										 if(document.mes_ex.ceinture.value < 50 || document.mes_ex.ceinture.value > 250) 
											{ 
										        obj2 = document.getElementById("div_tour_taille");
													  obj2.className = "boldT_red";
										  }      
										  else
										  	{
										  		  obj2 = document.getElementById("div_tour_taille");
													  obj2.className = "boldT"; 
										  	}
									}	  
										  
										
										if(champ.name=="bassin")
								  	{ 	
								  	  if(document.mes_ex.bassin.value < 50 || document.mes_ex.bassin.value > 250) 
											{ 
										    		obj2 = document.getElementById("div_bassin");
													  obj2.className = "boldT_red";
										  }    
										   else
										  	{
										  		  obj2 = document.getElementById("div_bassin");
													  obj2.className = "boldT"; 
										  	}
										  
										 }   
										  
										  
										  
										 if(champ.name=="poignets")
								  	{  
										   
										  if(document.mes_ex.poignets.value < 10 || document.mes_ex.poignets.value > 40) 
											{ 
														obj2 = document.getElementById("div_poignets");
													  obj2.className = "boldT_red";
										  }       
										   else
										  	{
										  		  obj2 = document.getElementById("div_poignets");
													  obj2.className = "boldT"; 
										  	}
										  
										 }
										  
										  
										if(champ.name=="mancheD")
								  	{   
								  		
								  		  if(document.mes_ex.manches_type[0].checked)
								    		{
										  
														if(document.mes_ex.mancheD.value < 40 || document.mes_ex.mancheD.value > 80) 
														{ 
															  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT_red";
														}
														else
												  	{
												  		  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT"; 
												  	}
												  	
												 }
												 if(document.mes_ex.manches_type[1].checked)
								    			{         
								    				if(document.mes_ex.mancheD.value < 14 || document.mes_ex.mancheD.value > 40) 
														{ 
															  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT_red";
														}
														else
												  	{
												  		  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT"; 
												  	}
								    				
								    				
								    				
								    			}
										  	
										  	
										  	
										}
													
												
												
										if(champ.name=="tour_bras")
								  	{     	
										   if(document.mes_ex.tour_bras.value < 16 || document.mes_ex.tour_bras.value > 60) 
											 { 
										  			obj2 = document.getElementById("div_tour_bras");
													  obj2.className = "boldT_red";
										   } 
										  	else
										  	{
										  		  obj2 = document.getElementById("div_tour_bras");
													  obj2.className = "boldT"; 
										  	}
										  
										}
										  
										  
										if(champ.name=="epaulette")
								  	{   
										   if(document.mes_ex.epaulette.value < 10 || document.mes_ex.epaulette.value > 40) 
											{ 
										 			  obj2 = document.getElementById("div_epaulettes");
													  obj2.className = "boldT_red"; 
										  }       	  
								    	else
										  	{
										  		  obj2 = document.getElementById("div_epaulettes");
													  obj2.className = "boldT"; 
										  	}
								    	
								    }	
								    		
								    		
								    		
							  }
							  
							  
							  
							  
							  
							  if(document.mes_ex.syst[1].checked)
				    		{
						    	
							    	
								    		if(champ.name=="cou")
								    		{
													    if(document.mes_ex.cou.value < 11 || document.mes_ex.cou.value > 26) 
															{ 
											      		 	obj2 = document.getElementById("div_cou");
																	obj2.className = "boldT_red";
												    		}
															else
																{
																		obj2 = document.getElementById("div_cou");
																		obj2.className = "boldT";
																	 
																}		
						    				}
						    		
						    		
						    		
						    		
						    		 if(champ.name=="poitrine")
								    		{		
						    				
											    	if(document.mes_ex.poitrine.value < 8 || document.mes_ex.poitrine.value > 80) 
															{ 
														   		obj2 = document.getElementById("div_poitrine");
																	obj2.className = "boldT_red"; 
															  }  
		                            else
														    {
																	obj2 = document.getElementById("div_poitrine");
																	obj2.className = "boldT";
														    }								
								    			}
								    
								    	
								    
								    	if(champ.name=="carrure")
								 			 { 
											     if(document.mes_ex.carrure.value < 14 || document.mes_ex.carrure.value > 36) 
															{ 
														  	 obj2 = document.getElementById("div_carrure");
																obj2.className = "boldT_red"; 
														  } 
															else{
													     	obj2 = document.getElementById("div_carrure");
																obj2.className = "boldT"; 
															} 		
											  
											}
											  
											  
											if(champ.name=="dos")
								  		{   
													if(document.mes_ex.dos.value < 19 || document.mes_ex.dos.value > 43) 
													{ 
												     obj2 = document.getElementById("div_dos");
													  	obj2.className = "boldT_red"; 
										  		}  
										 		 else
										  		{
										  		  obj2 = document.getElementById("div_dos");
													  obj2.className = "boldT"; 
											  	}
											 }
											  
										    
											if(champ.name=="ceinture")
								  		{ 			
													 if(document.mes_ex.ceinture.value < 8  || document.mes_ex.ceinture.value > 100) 
														{ 
													    obj2 = document.getElementById("div_tour_taille");
													  	obj2.className = "boldT_red";
													  }      
													  else
													  	{
													  		  obj2 = document.getElementById("div_tour_taille");
																  obj2.className = "boldT"; 
													  	} 
											}
											  
											  
											  
											  
										  if(champ.name=="bassin")
								  		{  
								  
												  if(document.mes_ex.bassin.value < 8  || document.mes_ex.bassin.value > 100) 
													{ 
												  	obj2 = document.getElementById("div_bassin");
													  obj2.className = "boldT_red";
										  		}    
										  		 else
										  		{
										  		  obj2 = document.getElementById("div_bassin");
													  obj2.className = "boldT"; 
										  		}
										  
											}
										  
										  
										  
										   if(champ.name=="poignets")
								  			{      
										  
													  	if(document.mes_ex.poignets.value < 4  || document.mes_ex.poignets.value > 16) 
															{ 
													  		 obj2 = document.getElementById("div_poignets");
													 			 obj2.className = "boldT_red";
														  }       
														   else
														  	{
														  		  obj2 = document.getElementById("div_poignets");
																	  obj2.className = "boldT"; 
														  	}     
										  
										 		}
										 
										 
										 
										 	if(champ.name=="mancheD")
								  	{   
								  		
								  		  if(document.mes_ex.manches_type[0].checked)
								    		{
										  
														if(document.mes_ex.mancheD.value < 15 || document.mes_ex.mancheD.value > 32) 
														{ 
															  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT_red";
														}
														else
												  	{
												  		  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT"; 
												  	}
												  	
												 }
												 if(document.mes_ex.manches_type[1].checked)
								    			{         
								    				if(document.mes_ex.mancheD.value < 5 || document.mes_ex.mancheD.value > 16) 
														{ 
															  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT_red";
														}
														else
												  	{
												  		  obj2 = document.getElementById("div_manches");
															  obj2.className = "boldT"; 
												  	}
								    				
								    				
								    				
								    			}
										  	
										  	
										  	
										}
										
										
										
						    		
						    			if(champ.name=="tour_bras")
												{						    				   
									    			if(document.mes_ex.tour_bras.value < 6 || document.mes_ex.tour_bras.value > 24) 
														{ 
														 	obj2 = document.getElementById("div_tour_bras");
														  obj2.className = "boldT_red";
										  			 } 	
										  			else
										  				{
										  		 		 		obj2 = document.getElementById("div_tour_bras");
													 			 obj2.className = "boldT"; 
										  				}
										  
										  	}
										  
										  
										  if(champ.name=="epaulette")
								  		{   
										  
													  if(document.mes_ex.epaulette.value < 4 || document.mes_ex.epaulette.value > 16) 
														{ 
													  
													    obj2 = document.getElementById("div_epaulettes");
													  	obj2.className = "boldT_red"; 
														  }       	  
												    	else
														  	{
														  		  obj2 = document.getElementById("div_epaulettes");
																	  obj2.className = "boldT"; 
														  	}
											}    	  
								
								
							}
						  
							  
							  
							  
				
								    
}





























function validation_chem() 
{  
				       
				    		
				    		if(document.mes_chem.col.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg1); 
								   document.mes_chem.col.focus(); 
								    return false; 
								  }
								  
								  
								  if(document.mes_chem.poignets.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg2); 
								   document.mes_chem.poignets.focus(); 
								    return false; 
								  }         
								  
								  
								if(document.mes_chem.demi_poitrine.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg3); 
								   document.mes_chem.demi_poitrine.focus(); 
								    return false; 
								  }  
								 
								  if(document.mes_chem.demi_taille.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg4); 
								   document.mes_chem.demi_taille.focus(); 
								    return false; 
								  }      
								  
								  if(document.mes_chem.demi_bassin.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg5); 
								   document.mes_chem.demi_bassin.focus(); 
								    return false; 
								  }       
								  
								   if(document.mes_chem.demis_bras.value  == '') 
											{ 
										   alert (lang_js_pernac_validation_chem_msg6); 
										   document.mes_chem.demis_bras.focus(); 
										    return false; 
										  }       
								  
								  
								   if(document.mes_chem.manches_val.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg7); 
								   document.mes_chem.manches_val.focus(); 
								    return false; 
								  } 
								  
								  
								  if(document.mes_chem.carrure.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg8); 
								   document.mes_chem.carrure.focus(); 
								    return false; 
								  }    
								  
								  
								  	if(document.mes_chem.epaulette.value  == '') 
											{ 
										   alert (lang_js_pernac_validation_chem_msg9); 
										   document.mes_chem.epaulette.focus(); 
										    return false; 
										  }       	  
								  
								  
								 
						
								 if(document.mes_chem.dos.value == '') 
									{ 
								   alert (lang_js_pernac_validation_chem_msg10); 
								   document.mes_chem.dos.focus(); 
								    return false; 
								  }  
								  
								
								  										
						if(document.mes_chem.syst[0].checked)
							{
						    		
						    		if(document.mes_chem.col.value < 30) 
												{ 
								        alert (lang_js_pernac_validation_chem_msg11); 
								        document.mes_chem.col.focus(); 
								        return false; 
								    		}
								    		
								    		
								    if(document.mes_chem.col.value > 65) 
												{ 
								        alert (lang_js_pernac_validation_chem_msg12); 
								        document.mes_chem.col.focus(); 
								        return false; 
								    		}
								    	
								      if(document.mes_chem.poignets.value < 10 || document.mes_chem.poignets.value > 40) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg13); 
										   document.mes_chem.poignets.focus(); 
										    return false; 
										  }       		
								    		
								    if(document.mes_chem.demi_poitrine.value < 25 || document.mes_chem.demi_poitrine.value > 100) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg14); 
											   document.mes_chem.demi_poitrine.focus(); 
											    return false; 
											  }  
								    
								    if(document.mes_chem.demi_taille.value < 25 || document.mes_chem.demi_taille.value > 125) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg15); 
										   document.mes_chem.demi_taille.focus(); 
										    return false; 
										  }      
										  
										  if(document.mes_chem.demi_bassin.value < 25 || document.mes_chem.demi_bassin.value > 125) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg16); 
										   document.mes_chem.demi_bassin.focus(); 
										    return false; 
										  }       
								    
								    
								       if(document.mes_chem.demis_bras.value < 8 || document.mes_chem.demis_bras.value > 30) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg17); 
										   document.mes_chem.demis_bras.focus(); 
										    return false; 
										  }       
								    
								    
								    if(document.mes_chem.manches_type[0].checked)
								    {
								       if(document.mes_chem.manches_val.value < 40 || document.mes_chem.manches_val.value > 80) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg18); 
											   document.mes_chem.manches_val.focus(); 
											    return false; 
											  } 
										}
										
										if(document.mes_chem.manches_type[1].checked)
								    {
								       if(document.mes_chem.manches_val.value < 14 || document.mes_chem.manches_val.value > 40) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg19); 
											   document.mes_chem.manches_val.focus(); 
											    return false; 
											  } 
										}
											  
											  
								    
								     if(document.mes_chem.carrure.value < 35 || document.mes_chem.carrure.value > 90) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg20); 
											   document.mes_chem.carrure.focus(); 
											    return false; 
											  }  		
											  
											  
											 
										   if(document.mes_chem.epaulette.value < 10 || document.mes_chem.epaulette.value > 40) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg21); 
										   document.mes_chem.epaulette.focus(); 
										    return false; 
										  }       	   
											  
											 if(document.mes_chem.dos.value < 50 || document.mes_chem.dos.value > 110) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg22); 
										   document.mes_chem.dos.focus(); 
										    return false; 
										  }  
										  
							  }
							  
							  
							 
						    		
				    		 if(document.mes_chem.syst[1].checked)
				    		{
						    	
								    		if(document.mes_chem.col.value < 11) 
												{ 
								        alert (lang_js_pernac_validation_chem_msg23); 
								        document.mes_chem.col.focus(); 
								        return false; 
								    		}
								    		
								    		
								    if(document.mes_chem.col.value > 26) 
												{ 
								        alert (lang_js_pernac_validation_chem_msg24); 
								        document.mes_chem.col.focus(); 
								        return false; 
								    		}
								    	
								      if(document.mes_chem.poignets.value < 4 || document.mes_chem.poignets.value > 16) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg25); 
										   document.mes_chem.poignets.focus(); 
										    return false; 
										  }       		
								    		
								    if(document.mes_chem.demi_poitrine.value < 4 || document.mes_chem.demi_poitrine.value > 40) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg26); 
											   document.mes_chem.demi_poitrine.focus(); 
											    return false; 
											  }  
								    
								    if(document.mes_chem.demi_taille.value < 4 || document.mes_chem.demi_taille.value > 50) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg27); 
										   document.mes_chem.demi_taille.focus(); 
										    return false; 
										  }      
										  
										  if(document.mes_chem.demi_bassin.value < 4 || document.mes_chem.demi_bassin.value > 50) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg28); 
										   document.mes_chem.demi_bassin.focus(); 
										    return false; 
										  }       
								    
								    
								       if(document.mes_chem.demis_bras.value < 3 || document.mes_chem.demis_bras.value > 12) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg29); 
										   document.mes_chem.demis_bras.focus(); 
										    return false; 
										  }       
								    
								    
								    if(document.mes_chem.manches_type[0].checked)
								    {
								       if(document.mes_chem.manches_val.value < 15 || document.mes_chem.manches_val.value > 32) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg30); 
											   document.mes_chem.manches_val.focus(); 
											    return false; 
											  } 
										}
										
										if(document.mes_chem.manches_type[1].checked)
								    {
								       if(document.mes_chem.manches_val.value < 5 || document.mes_chem.manches_val.value > 16) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg31); 
											   document.mes_chem.manches_val.focus(); 
											    return false; 
											  } 
										}
											  
											  
								    
								     if(document.mes_chem.carrure.value < 14 || document.mes_chem.carrure.value > 36) 
												{ 
											   alert (lang_js_pernac_validation_chem_msg32); 
											   document.mes_chem.carrure.focus(); 
											    return false; 
											  }  		
											  
											  
											 
										   if(document.mes_chem.epaulette.value < 4 || document.mes_chem.epaulette.value > 16) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg33); 
										   document.mes_chem.epaulette.focus(); 
										    return false; 
										  }       	   
											  
											 if(document.mes_chem.dos.value < 19 || document.mes_chem.dos.value > 43) 
											{ 
										   alert (lang_js_pernac_validation_chem_msg34); 
										   document.mes_chem.dos.focus(); 
										    return false; 
										  }  
								}
						  
						  
								else {return true;}
}








				
						
function verif_nombre2(champ)
{
								var chiffres = new RegExp('[0-9]'); 
								var verif;
								
								for(x = 0; x < champ.value.length; x++)
								{
								verif = chiffres.test(champ.value.charAt(x));
								
								if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
								}
						
}
				
				
				
function verif_nombre_cart(champ)
{
								var chiffres = new RegExp('[1-9]'); 
								var verif;
								
								for(x = 0; x < champ.value.length; x++)
								{
								verif = chiffres.test(champ.value.charAt(x));
								
								if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
								}
						
}
						
function verif_nombre3(champ)
{
								var chiffres = new RegExp('[.0123456789]'); 
								var verif;
								
								for(x = 0; x < champ.value.length; x++)
								{
								verif = chiffres.test(champ.value.charAt(x));
								
								if(verif == false){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
								}
						
}
								
				
function suppr_car(champ)
{
	
		var suppr = new RegExp('[,]'); 
								var verif;
								
								for(x = 0; x < champ.value.length; x++)
								{
								verif = suppr.test(champ.value.charAt(x));
								
								if(verif == true){champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); x--;}
								}
}				
								
								
function limit_textarea() 
{
     maxlength=250;
     nbcartoerase=0;
     
     champ=document.mes_ex.comments;
     suppr_car(champ);
     
     if(document.mes_ex.comments.value.length >= maxlength) 
     {
          
          nbcartoerase = document.mes_ex.comments.value.length - maxlength ;
          
          var msg = lang_js_pernac_limit_textarea_msg1;
              
          alert(msg);
          
          champ=document.mes_ex.comments;
          
          for(x = maxlength; x < document.mes_ex.comments.value.length; x++)
								{
									
									champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1); 
									x--;
								}
          
          
          document.mes_ex.comments.focus();
          return false;
     }
     else {
          return true;
     }
}								
