	function validateForm001(langue)
   	{
   		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('FormSecurite'); 
strTravail = document.getElementById('strTravail'); 


strPic1 = document.getElementById('pPic1')


	var vValidExtensions = ".TXT .DOC .DOCX .PDF";
	var vValidCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-_~."
	var vEmptyCount = 0;

        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('strSecurityError').style.display = 'none';
        document.getElementById('pPic1Error').style.display = 'none';
		document.getElementById('strLearnedAboutError').style.display = 'none';
		document.getElementById('strLearnedAboutOtherError').style.display = 'none';
document.getElementById('strTravailError').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';
		strPic1.style.borderColor  = '#000000';
		strLearnedAbout.style.borderColor  = '#000000';
		strLearnedAboutOther.style.borderColor  = '#000000';
strTravail.style.borderColor  = '#000000';
		

Invalide = true;
Focus = "";

   		if(strPrenom.value == '') 
   		{ 
   		    strPrenom.style.border = '2px solid #00fcff';
   		    document.getElementById('strPrenomError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strPrenomError').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strPrenomError').innerHTML = '(required)'; 
			}
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strPrenom').focus();
			}
			Invalide = false;
   		}
   		   		
   		if(strNom.value == '') 
   		{ 
   		    strNom.style.border = '2px solid #00fcff';
   		    document.getElementById('strNomError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strNomError').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strNomError').innerHTML = '(required)'; 
			}
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strNom').focus();
			}
   		    Invalide = false;
   		}
   		
   		if(strEmail.value == '') 
   		{ 
   		    strEmail.style.border = '2px solid #00fcff';
   		    document.getElementById('strEmailError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strEmailError').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strEmailError').innerHTML = '(required)'; 
			}
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail').focus();
			}
   		    Invalide = false;
   		}

   		if(!isValidEmail(strEmail.value)) 
   		{ 
   		    strEmail.style.border = '2px solid #00fcff';   		    
   		    document.getElementById('strEmailError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strEmailError').innerHTML = '(invalide)'; 
			}else{
				document.getElementById('strEmailError').innerHTML = '(invalid)'; 
			}
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail').focus();
			}
   		    Invalide = false;   		
   		}   		   		   		
   		
   		if(strEmail2.value == '') 
   		{ 
   		    strEmail2.style.border = '2px solid #00fcff';
   		    document.getElementById('strEmail2Error').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strEmail2Error').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strEmail2Error').innerHTML = '(required)'; 
			}
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail2').focus();
			}
   		    Invalide = false;
   		}
		
   		if(strEmail.value != strEmail2.value) 
   		{ 
			strEmail2.style.border = '2px solid #00fcff';
   		    document.getElementById('strEmail2Error').style.display = 'inline';
   		    document.getElementById('strEmail2Error').innerHTML = '(pas identique)'; 
   		    if(langue=="fr")
			{	
				document.getElementById('strEmail2Error').innerHTML = '(pas identique)'; 
			}else{
				document.getElementById('strEmail2Error').innerHTML = '(Not the same)'; 
			}
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail2').focus();
			}
   		    Invalide = false;
   		}
		
   		if(strPhone.value == '') 
   		{ 
   		    strPhone.style.border = '2px solid #00fcff';
   		    document.getElementById('strPhoneError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strPhoneError').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strPhoneError').innerHTML = '(required)'; 
			}
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strPhone').focus();
			}
   		    Invalide = false;
   		}
		
		
		if(strTravail.value == '') 
   		{ 
   		    strTravail.style.border = '2px solid #00fcff';
   		    document.getElementById('strTravailError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strTravailError').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strTravailError').innerHTML = '(required)'; 
			}
			
			if(Focus=="")
			{
				Focus = "true"
				strTravail.focus();
			}
   		    Invalide = false;
   		}


		vTextboxValue = strPic1.value;
		if(vTextboxValue == ""){
			++vEmptyCount;
				document.getElementById('pPic1') .style.border = '1px solid #000000';
				document.getElementById('pPic1'+'Error').style.display = 'none';
		}
		else{
			vFilename = GetFilename(vTextboxValue);
			vExtension = GetExtension(vFilename);
			vValidFilename = true;
			vPeriodCount = 0;

			for(j=0; j<vFilename.length; ++j){
				vChar = vFilename.substr(j, 1);

				if(vChar == "."){++vPeriodCount;}

				if(vValidCharacters.indexOf(vChar) == -1){
					vValidFilename = false;
				}
			}

			if(vPeriodCount > 1){vValidFilename = false;}
   		    
			if(langue=="fr")
			{	

					if(vValidExtensions.indexOf(vExtension) == -1){
						 vError = '(Seule les formats: '+ vValidExtensions +' sont acceptés.)'
						 vValidFilename = false;
					}
					else if(vFilename.indexOf(" ") != -1){
						vError = "Aucun espace n'est permis dans le nom de votre fichier. Veuillez le renommer s.v.p.";
						vValidFilename = false;
					}
					else if(vFilename.length > 35){
						vError = "Le nom de votre ficher doit être moins que 30 caractères.";
						vValidFilename = false;
					}
					else if(vValidFilename == false){
						vError = "Le nom de votre ficher est invalide.";
						vValidFilename = false;
					}
					
			}else{
		
					if(vValidExtensions.indexOf(vExtension) == -1){
						vError = "\nOnly :\n" + vValidExtensions + "\nare accepted.";
						vValidFilename = false;
					}
					else if(vFilename.indexOf(" ") != -1){
						vError = "No space is allowed for your file name. \nPlease rename your file.";
						vValidFilename = false;
					}
					else if(vFilename.length > 35){
						vError = "The name of your file must be less than 30 characters.";
						vValidFilename = false;
					}
					else if(vValidFilename == false){
						vError = "The name of your file is invalid.";
						vValidFilename = false;
					}
			}
			
			
			strPic = document.getElementById('pPic1') 
			if(vValidFilename == false)
			{
				strPic.style.border = '2px solid #00fcff';
				document.getElementById('pPic1'+'Error').style.display = 'inline';
				document.getElementById('pPic1'+'Error').innerHTML = vError; 
				
				if(Focus=="")
				{
					Focus = "true"
					document.getElementById('strPrenom').focus();
				}
				Invalide = false;
			}
			
		}

		if(strPic1.value == '') 
   		{ 
   		    strPic1.style.border = '2px solid #00fcff';
   		    document.getElementById('pPic1Error').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('pPic1Error').innerHTML = '(requis)'; 
			}else{
				document.getElementById('pPic1Error').innerHTML = '(required)'; 
			}
			
			if(Focus=="")
			{
				Focus = "true"
				strPic1.focus();
			}
   		    Invalide = false;
   		}


		if(strLearnedAbout.value == 'Choisissez') 
   		{ 
   		    strLearnedAbout.style.border = '2px solid #00fcff';
   		    document.getElementById('strLearnedAboutError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strLearnedAboutError').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strLearnedAboutError').innerHTML = '(required)'; 
			}
			
			if(Focus=="")
			{
				Focus = "true"
				strLearnedAbout.focus();
			}
   		    Invalide = false;
   		}
		if(strLearnedAbout.value == 'Autre')
		{
			if(strLearnedAboutOther.value == '') 
			{ 
				strLearnedAboutOther.style.border = '2px solid #00fcff';
				document.getElementById('strLearnedAboutOtherError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strLearnedAboutOtherError').innerHTML = '(requis)'; 
			}else{
				document.getElementById('strLearnedAboutOtherError').innerHTML = '(required)'; 
			}
				
				if(Focus=="")
				{
					Focus = "true"
					strLearnedAboutOther.focus();
				}
				Invalide = false;
			}
		}
   		if(strSecurity.value != FormSecurite.value) 
   		{ 
   		    strSecurity.style.border = '2px solid #00fcff';
   		    document.getElementById('strSecurityError').style.display = 'inline';
   		    if(langue=="fr")
			{	
				document.getElementById('strSecurityError').innerHTML = '(pas identique)'; 
			}else{
				document.getElementById('strSecurityError').innerHTML = '(Not the same)'; 
			}
			
			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("@"));
    }
	
	function GetFilename(pFullpath){
	vLastSlashLocation = pFullpath.lastIndexOf("\\");
		if(vLastSlashLocation == -1){
			return pFullpath;
		}
		else{
			return pFullpath.substr(vLastSlashLocation + 1);
		}
	}
	
	function GetExtension(pFilename){
		if(pFilename.length > 4){
			return pFilename.substr(pFilename.length-4, 4).toUpperCase();
		}
		else{
			return "unknown";
		}
	}

