
	function validateForm001()
   	{
		
   		strPrenom = document.getElementById('strPrenom');
   		strNom = document.getElementById('strNom');
   		strEmail = document.getElementById('strEmail');
   		strEmail2 = document.getElementById('strEmail2');
   		strPhone = document.getElementById('strPhone');
		strLearnedAbout = document.getElementById('strLearnedAbout');
		strLearnedAboutOther = document.getElementById('strLearnedAboutOther');
		strSecurity = document.getElementById('strSecurity');
		FormSecurite = document.getElementById('strFormSecurite'); 
		
		strCompany = document.getElementById('strCompany'); 
		strType = document.getElementById('strType'); 
		strTypeOther = document.getElementById('strTypeOther'); 
		strYearEnd = document.getElementById('strYearEnd'); 
		
		
        document.getElementById('strPrenomError').style.display = 'none';
        document.getElementById('strNomError').style.display = 'none';   		
   		document.getElementById('strEmailError').style.display = 'none';
   		document.getElementById('strEmail2Error').style.display = 'none';
	   	document.getElementById('strPhoneError').style.display = 'none';
		document.getElementById('strLearnedAboutError').style.display = 'none';
		document.getElementById('strLearnedAboutOtherError').style.display = 'none';

   		document.getElementById('strCompanyError').style.display = 'none';
		document.getElementById('strTypeError').style.display = 'none';
		document.getElementById('strTypeOtherError').style.display = 'none';
		document.getElementById('strYearEndError').style.display = 'none';

		document.getElementById('strSecurityError').style.display = 'none';

		strPrenom.style.borderColor = '#000000';
   		strNom.style.borderColor  = '#000000';
   		strEmail.style.borderColor  = '#000000';
   		strEmail2.style.borderColor  = '#000000';
   		strPhone.style.borderColor  = '#000000';
		strSecurity.style.borderColor  = '#000000';
	
   		strCompany.style.borderColor  = '#000000';
   		strType.style.borderColor  = '#000000';
		strTypeOther.style.borderColor  = '#000000';
		strYearEnd.style.borderColor  = '#000000';
	
		strLearnedAbout.style.borderColor  = '#000000';
		strLearnedAboutOther.style.borderColor  = '#000000';
		

Invalide = true;
Focus = "";

   		if(strPrenom.value == '') 
   		{ 
   		    strPrenom.style.border = '1px solid #dd7627';
   		    document.getElementById('strPrenomError').style.display = 'inline';
   		    document.getElementById('strPrenomError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strPrenom').focus();
			}
			Invalide = false;
   		}
   		   		
   		if(strNom.value == '') 
   		{ 
   		    strNom.style.border = '1px solid #dd7627';
   		    document.getElementById('strNomError').style.display = 'inline';
   		    document.getElementById('strNomError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strNom').focus();
			}
   		    Invalide = false;
   		}
   		
   		if(strEmail.value == '') 
   		{ 
   		    strEmail.style.border = '1px solid #dd7627';
   		    document.getElementById('strEmailError').style.display = 'inline';
   		    document.getElementById('strEmailError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail').focus();
			}
   		    Invalide = false;
   		}

   		if(!isValidEmail(strEmail.value)) 
   		{ 
   		    strEmail.style.border = '1px solid #dd7627';   		    
   		    document.getElementById('strEmailError').style.display = 'inline';
   		    document.getElementById('strEmailError').innerHTML = '(invalide)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail').focus();
			}
   		    Invalide = false;   		
   		}   		   		   		
   		
   		if(strEmail2.value == '') 
   		{ 
   		    strEmail2.style.border = '1px solid #dd7627';
   		    document.getElementById('strEmail2Error').style.display = 'inline';
   		    document.getElementById('strEmail2Error').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail2').focus();
			}
   		    Invalide = false;
   		}
		
   		if(strEmail.value != strEmail2.value) 
   		{ 
			strEmail2.style.border = '1px solid #dd7627';
   		    document.getElementById('strEmail2Error').style.display = 'inline';
   		    document.getElementById('strEmail2Error').innerHTML = '(pas identique)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail2').focus();
			}
   		    Invalide = false;
   		}

   		if(strPhone.value == '') 
   		{ 
			strPhone.style.border = '1px solid #dd7627';
   		    document.getElementById('strPhoneError').style.display = 'inline';
   		    document.getElementById('strPhoneError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strPhone').focus();
			}
   		    Invalide = false;
   		}
		
		
   		if(strCompany.value == '') 
   		{ 
   		    strCompany.style.border = '1px solid #dd7627';
   		    document.getElementById('strCompanyError').style.display = 'inline';
   		    document.getElementById('strCompanyError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strCompany').focus();
			}
   		    Invalide = false;
   		}
		
		if(strType.value == 'Choisissez') 
   		{ 
   		    strType.style.border = '1px solid #dd7627';
   		    document.getElementById('strTypeError').style.display = 'inline';
   		    document.getElementById('strTypeError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				strType.focus();
			}
   		    Invalide = false;
   		}
		if(strType.value == 'Autre')
		{
			if(strTypeOther.value == '') 
			{ 
				strTypeOther.style.border = '1px solid #dd7627';
				document.getElementById('strTypeOtherError').style.display = 'inline';
				document.getElementById('strTypeOtherError').innerHTML = '(requis)'; 
				
				if(Focus=="")
				{
					Focus = "true"
					strTypeOther.focus();
				}
				Invalide = false;
			}
		}
		
		if(strYearEnd.value == 'Choisissez') 
   		{ 
   		    strYearEnd.style.border = '1px solid #dd7627';
   		    document.getElementById('strYearEndError').style.display = 'inline';
   		    document.getElementById('strYearEndError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				strYearEnd.focus();
			}
   		    Invalide = false;
   		}


		if(strLearnedAbout.value == 'Choisissez') 
   		{ 
   		    strLearnedAbout.style.border = '1px solid #dd7627';
   		    document.getElementById('strLearnedAboutError').style.display = 'inline';
   		    document.getElementById('strLearnedAboutError').innerHTML = '(requis)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				strLearnedAbout.focus();
			}
   		    Invalide = false;
   		}
		if(strLearnedAbout.value == 'Autre')
		{
			if(strLearnedAboutOther.value == '') 
			{ 
				strLearnedAboutOther.style.border = '1px solid #dd7627';
				document.getElementById('strLearnedAboutOtherError').style.display = 'inline';
				document.getElementById('strLearnedAboutOtherError').innerHTML = '(requis)'; 
				
				if(Focus=="")
				{
					Focus = "true"
					strLearnedAboutOther.focus();
				}
				Invalide = false;
			}
		}
		
		

		
   		if(strSecurity.value != FormSecurite.value) 
   		{ 
   		    strSecurity.style.border = '1px solid #dd7627';
   		    document.getElementById('strSecurityError').style.display = 'inline';
   		    document.getElementById('strSecurityError').innerHTML = '<br>(pas identique)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strSecurity').focus();
			}
   		    Invalide = false;
   		}   


		
		if(Invalide != false)
		{
   			return true;
			
		}else
		{
			return false;	
		}
	}

	
   	function isValidEmail(str) 
   	{
        return (str.lastIndexOf(".") > 2) && (str.indexOf("@") > 0) && (str.lastIndexOf(".") > (str.indexOf("@")+1)) && (str.indexOf("@") == str.lastIndexOf("@"));
    }
	