function Remplace(expr,a,b) {
      var i=0
      while (i!=-1) {
         i=expr.indexOf(a,i);
         if (i>=0) {
            expr=expr.substring(0,i)+b+expr.substring(i+a.length);
            i+=b.length;
         }
      }
      return expr
   }
   
function redirectContactLink(idtype) {
      //alert("##"+idtype+"##");
      if (idtype == 1) {
      	location.href="http://contact.airliquide.com/fr/requests/gis/contact.asp";
	}
      if (idtype == 12) {
      	location.href="http://contact.airliquide.com/en/requests/uk/contact.asp";
	}
      if (idtype == 6) {
      	location.href="http://contact.airliquide.com/nl/requests/belux/contact.asp?subject=belgique";
	} 
      if (idtype == 71) {
      	location.href="http://contact.airliquide.com/nl/requests/belux/contact.asp?subject=luxembourg";
	} 
      if (idtype == 16) {
      	location.href="http://contact.airliquide.com/nl/requests/belux/contact.asp?subject=paysbas";
	} 
      if (idtype == 22) {
      	location.href="http://contact.airliquide.com/en/requests/za/contact.asp";
	} 
      if (idtype == 47) {
      	location.href="http://contact.airliquide.com/it/requests/contact.asp";
	} 
      if (idtype == 107) {
      	location.href="http://contact.airliquide.com/nl/requests/belux/contact.asp?subject=belgique";
	} 
      if (idtype == 407) {
      	location.href="http://contact.airliquide.com/fr/requests/weldingfrance/contact.asp?subject=departement";
	} 
      if (idtype == 49) {
      	location.href="http://contact.airliquide.com/en/requests/india/contact.asp";
	} 
      if (idtype == 21) {
      	location.href="http://contact.airliquide.com/sp/requests/spain/contact.asp";
	} 
      if (idtype == 9) {
      	location.href="http://contact.airliquide.com/en/requests/vn/contact.asp";
	} 
      if (idtype == 62) {
      	location.href="http://contact.airliquide.com/en/requests/canada/contact.asp";
	} 
      if (idtype == 10) {
      	location.href="http://contact.airliquide.com/en/requests/usa/contact.asp";
	} 
      if (idtype == 25) {
      	location.href="http://contact.airliquide.com/en/requests/africa/contact.asp?subject=senegal";
	} 
   }

function redirectContactLinkFr(idtype) {
      //alert("##"+idtype+"##");
      if (idtype == 1) {
      	location.href="http://contact.airliquide.com/fr/requests/gis/contact.asp";
	}
      if (idtype == 12) {
      	location.href="http://contact.airliquide.com/en/requests/uk/contact.asp";
	}
      if (idtype == 6) {
      	location.href="http://contact.airliquide.com/fr/requests/belux/contact.asp?subject=belgique";
	} 
      if (idtype == 71) {
      	location.href="http://contact.airliquide.com/fr/requests/belux/contact.asp?subject=luxembourg";
	} 
      if (idtype == 16) {
      	location.href="http://contact.airliquide.com/fr/requests/belux/contact.asp?subject=paysbas";
	} 
      if (idtype == 22) {
      	location.href="http://contact.airliquide.com/en/requests/za/contact.asp";
	} 
      if (idtype == 47) {
      	location.href="http://contact.airliquide.com/it/requests/contact.asp";
	} 
      if (idtype == 107) {
      	location.href="http://contact.airliquide.com/fr/requests/belux/contact.asp?subject=belgique";
	} 
      if (idtype == 49) {
      	location.href="http://contact.airliquide.com/en/requests/india/contact.asp";
	} 
      if (idtype == 21) {
      	location.href="http://contact.airliquide.com/sp/requests/spain/contact.asp";
	} 
      if (idtype == 9) {
      	location.href="http://contact.airliquide.com/en/requests/vn/contact.asp";
	} 
      if (idtype == 62) {
      	location.href="http://contact.airliquide.com/fr/requests/canada/contact.asp";
	} 
      if (idtype == 10) {
      	location.href="http://contact.airliquide.com/en/requests/usa/contact.asp";
	} 
      if (idtype == 25) {
      	location.href="http://contact.airliquide.com/fr/requests/africa/contact.asp?subject=senegal";
	} 
   }

function verif(frm1){

		if(frm1.idtype.options[frm1.idtype.selectedIndex].value == ""){
			alert("Veuillez indiquer votre interlocuteur.");
			frm1.idtype.focus();
			return(false);
		}
		/*if(frm1.labeltype2.options[frm1.labeltype2.selectedIndex].value == ""){
			alert("Veuillez indiquer votre activité.");
			frm1.labeltype2.focus();
			return(false);
		}*/
		if(frm1.questions.value == ""){
			alert("Veuillez indiquer votre question.");
			frm1.questions.focus();
			return(false);
		}
		if(frm1.questions.value.indexOf("?")>=1){
			frm1.questions.value = Remplace(frm1.questions.value,'?','? ');
		}
		if(frm1.civility[0].checked == false && frm1.civility[1].checked == false){
			alert("Veuillez indiquer votre civilité.");
			frm1.civility[0].focus();
			return (false);
		}
		if(frm1.lastname.value == ""){
			alert("Veuillez indiquer votre nom.");
			frm1.lastname.focus();
			return(false);
		}
		if(frm1.firstname.value == ""){
			alert("Veuillez indiquer votre prénom.");
			frm1.firstname.focus();
			return(false);
		}
		if(frm1.zip.value == ""){
			alert("Veuillez indiquer votre code postal.");
			frm1.zip.focus();
			return(false);
		}
		/*if(frm1.country_id.options[frm1.country_id.selectedIndex].value == ""){
			alert("Veuillez indiquer votre pays.");
			frm1.country_id.focus();
			return(false);
		}*/
		if(frm1.email.value == ""){
			alert("Veuillez indiquer votre adresse email.");
			frm1.email.focus();
			return(false);
		}
		if((frm1.email.value.indexOf("@")<=0) || (frm1.email.value.indexOf(".")<=0)){
			alert("Votre adresse email n'est pas valide !");
			frm1.email.focus();
			return(false);
		}
		if(frm1.terms.checked == false){
			alert("Veuillez confirmer si vous acceptez les termes et conditions régissant ce site.");
			frm1.terms.focus();
			return(false);
		}
	}
function verifdef(frm1){

		if(frm1.idtype.options[frm1.idtype.selectedIndex].value == ""){
			alert("Veuillez indiquer votre interlocuteur Air Liquide.");
			frm1.idtype.focus();
			return(false);
		}
		if(frm1.labeltype2.options[frm1.labeltype2.selectedIndex].value == ""){
			alert("Veuillez indiquer votre activité.");
			frm1.labeltype2.focus();
			return(false);
		}
		if(frm1.questions.value == ""){
			alert("Veuillez indiquer votre question.");
			frm1.questions.focus();
			return(false);
		}
		if(frm1.questions.value.indexOf("?")>=1){
			frm1.questions.value = Remplace(frm1.questions.value,'?','? ');
		}
		if(frm1.civility[0].checked == false && frm1.civility[1].checked == false){
			alert("Veuillez indiquer votre civilité.");
			frm1.civility[0].focus();
			return (false);
		}
		if(frm1.lastname.value == ""){
			alert("Veuillez indiquer votre nom.");
			frm1.lastname.focus();
			return(false);
		}
		if(frm1.firstname.value == ""){
			alert("Veuillez indiquer votre prénom.");
			frm1.firstname.focus();
			return(false);
		}
		if(frm1.zip.value == ""){
			alert("Veuillez indiquer votre code postal.");
			frm1.zip.focus();
			return(false);
		}
		if(frm1.country_id.options[frm1.country_id.selectedIndex].value == ""){
			alert("Veuillez indiquer votre pays.");
			frm1.country_id.focus();
			return(false);
		}
		if(frm1.email.value == ""){
			alert("Veuillez indiquer votre adresse email.");
			frm1.email.focus();
			return(false);
		}
		if((frm1.email.value.indexOf("@")<=0) || (frm1.email.value.indexOf(".")<=0)){
			alert("Votre adresse email n'est pas valide !");
			frm1.email.focus();
			return(false);
		}
		if(frm1.terms.checked == false){
			alert("Veuillez confirmer si vous acceptez les termes et conditions régissant ce site.");
			frm1.terms.focus();
			return(false);
		}
	}
