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://www.france.airliquide.com/fr/requests/contact_fr.asp";
	}
      if (idtype == 12) {
      	location.href="http://www.uk.airliquide.com/en/requests/contact.asp";
	}
      if (idtype == 6) {
      	location.href="http://www.airliquide.be/nl/requests/contactsbelgique_fr.asp?category=country&labeltype=Belgie";
	} 
      if (idtype == 71) {
      	location.href="http://www.airliquide.be/nl/requests/contactsbelgique_fr.asp?category=country&labeltype=Luxemburg";
	} 
      if (idtype == 16) {
      	location.href="http://www.airliquide.be/nl/requests/contactsbelgique_fr.asp?category=country&labeltype=Nederland";
	} 
      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";
	} 
   }

function verif(frm1){

		if(frm1.idtype.options[frm1.idtype.selectedIndex].value == ""){
			alert("Vul hier s.v.p. uw gesprekspartner in.");
			frm1.idtype.focus();
			return(false);
		}
		/*if(frm1.labeltype2.options[frm1.labeltype2.selectedIndex].value == ""){
			alert("Vul hier s.v.p. uw bedrijf in.");
			frm1.labeltype2.focus();
			return(false);
		}*/
		if(frm1.questions.value == ""){
			alert("Vul hier s.v.p. uw vra(a)g(en) in");
			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("Please, enter your civility.");
			frm1.civility[0].focus();
			return (false);
		}
		if(frm1.lastname.value == ""){
			alert("Vul hier s.v.p. uw achternaam in.");
			frm1.lastname.focus();
			return(false);
		}
		if(frm1.firstname.value == ""){
			alert("Vul hier s.v.p. uw voornaam in.");
			frm1.firstname.focus();
			return(false);
		}
		if(frm1.zip.value == ""){
			alert("Vul hier s.v.p. uw postcode in.");
			frm1.zip.focus();
			return(false);
		}
		if(frm1.country_id.options[frm1.country_id.selectedIndex].value == ""){
			alert("Vul hier s.v.p. uw land in.");
			frm1.country_id.focus();
			return(false);
		}
		if(frm1.email.value == ""){
			alert("Vul hier s.v.p. uw emailadres in.");
			frm1.email.focus();
			return(false);
		}
		if((frm1.email.value.indexOf("@")<=0) || (frm1.email.value.indexOf(".")<=0)){
			alert("Dit Emailadres is geen geldig Emailadres !");
			frm1.email.focus();
			return(false);
		}
		if(frm1.terms.checked == false){
			alert("Bevestig hier dat u de voorwaarden van onze website accepteerd inclusief de privacy policy voordat u dit formulier doorstuurt.");
			frm1.terms.focus();
			return(false);
		}
	}

