
function VersionNavigateur(Netscape, Explorer) {
	if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||
		  (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
		return true;
	else return false;
}
function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}
function check2(){
	var msg = ''
	
	if ((trim(document.FormNew.prenom.value))==''){msg = msg + "- Inscrivez votre prénom.\n"}
	if ((trim(document.FormNew.nom.value))==''){msg = msg + "- Inscrivez votre nom.\n"}
	if ((trim(document.FormNew.fonction.value))==''){msg = msg + "- Inscrivez votre titre.\n"}
	if ((trim(document.FormNew.compagnie.value))==''){msg = msg + "- Inscrivez votre compagnie.\n"}
	//if ((trim(document.FormNew.division.value))==''){msg = msg + "- Inscrivez une division.\n"}
	//if ((trim(document.FormNew.adresse.value))==''){msg = msg + "- Inscrivez votre adresse.\n"}
	//if ((trim(document.FormNew.ville.value))==''){msg = msg + "- Inscrivez votre ville.\n"}
	//if ((trim(document.FormNew.province.value))==''){msg = msg + "- Inscrivez votre État/Province.\n"}
	//if ((trim(document.FormNew.codepostal.value))==''){msg = msg + "- Inscrivez votre code postal.\n"}
	if ((trim(document.FormNew.pays.value))==''){msg = msg + "- Inscrivez votre pays.\n"}
	if ((trim(document.FormNew.telephone.value))==''){msg = msg + "- Inscrivez un numéro de téléphone.\n"}
	//if ((trim(document.FormNew.telecopieur.value))==''){msg = msg + "- Inscrivez un numéro de télécopieur.\n"}
	if ((isValidEmail(document.FormNew.courriel.value))==false){msg = msg + "- Inscrivez une adresse de courriel valide.\n"}	
	//if ((trim(document.FormNew.question.value))==''){msg = msg + "- Inscrivez vos intérêts\n"}

	if (msg==''){
		return true
	}else{
		alert(msg)
		return false
	}	
}
function check(){
	var msg = ''
	
	if ((trim(document.FormNew.prenom.value))==''){msg = msg + "- Inscrivez votre prénom.\n"}
	if ((trim(document.FormNew.nom.value))==''){msg = msg + "- Inscrivez nom.\n"}
	if ((trim(document.FormNew.fonction.value))==''){msg = msg + "- Inscrivez votre titre.\n"}
	if ((trim(document.FormNew.compagnie.value))==''){msg = msg + "- Inscrivez votre compagnie.\n"}
	if ((trim(document.FormNew.pays.value))==''){msg = msg + "- Inscrivez le pays.\n"}
	if ((trim(document.FormNew.telephone.value))==''){msg = msg + "- Inscrivez un numéro de téléphone.\n"}
	if ((isValidEmail(document.FormNew.courriel.value))==false){msg = msg + "- Inscrivez un courriel valide.\n"}	
	if ((trim(document.FormNew.question.value))==''){msg = msg + "- Précisez votre requête.\n"}

	if (msg==''){
		return true
	}else{
		alert(msg)
		return false
	}	
}
function trim(TRIM_VALUE){


        	if(TRIM_VALUE.length < 1){
        		return"";
        	}
        	TRIM_VALUE = RTrim(TRIM_VALUE);
        	TRIM_VALUE = LTrim(TRIM_VALUE);


            	if(TRIM_VALUE==""){
            		return "";
            	}


                	else{
                		return TRIM_VALUE;
                	}
            }


                function RTrim(VALUE){
                	var w_space = String.fromCharCode(32);
                	var v_length = VALUE.length;
                	var strTemp = "";


                    	if(v_length < 0){
                    		return"";
                    	}
                    	var iTemp = v_length -1;


                        	while(iTemp > -1){
                        		if(VALUE.charAt(iTemp) == w_space){}


                            		else{
                            			strTemp = VALUE.substring(0,iTemp +1);
                            			break;
                            		}
                            		iTemp = iTemp-1;
                            	}
                            	return strTemp;
                        }


                            function LTrim(VALUE){
                            	var w_space = String.fromCharCode(32);


                                	if(v_length < 1){
                                		return"";
                                	}
                                	var v_length = VALUE.length;
                                	var strTemp = "";
                                	var iTemp = 0;


                                    	while(iTemp < v_length){
                                    		if(VALUE.charAt(iTemp) == w_space){}


                                        		else{
                                        			strTemp = VALUE.substring(iTemp,v_length);
                                        			break;
                                        		}
                                        		iTemp = iTemp + 1;
                                        	}
                                        	return strTemp;
                                    }

