   	function validateForm001()
   	{

el = document.getElementById('strRaison');
	
	

		strFullName = document.getElementById('strFullName');
   		strEmail = document.getElementById('strEmail');
   		strEmail2 = document.getElementById('strEmail2');
   		strCompany = document.getElementById('strCompany');
		
        document.getElementById('strFullNameError').style.display = 'none';
   		document.getElementById('strEmailError').style.display = 'none';
   		document.getElementById('strEmail2Error').style.display = 'none';
   		document.getElementById('strCompanyError').style.display = 'none';
		
   		strFullName.style.borderColor = '#F47B03';
   		strEmail.style.borderColor = '#F47B03';
   		strEmail2.style.borderColor = '#F47B03';
		strCompany.style.borderColor = '#F47B03';
		
Invalide = true;
Focus = "";

   		if (el.value == 'I want to be a reseller' || el.value == 'I want to be seen on your site'){
			if(strCompany.value == '') 
				{ 
					strCompany.style.border = '2px solid #f90404';
					document.getElementById('strCompanyError').style.display = 'inline';
					document.getElementById('strCompanyError').innerHTML = '(Required field)'; 
					
					if(Focus=="")
					{
						Focus = "true"
						document.getElementById('strCompany').focus();
					}
					Invalide = false;
				}
		}
   		if(strFullName.value == '') 
   		{ 
   		    strFullName.style.border = '2px solid #f90404';
   		    document.getElementById('strFullNameError').style.display = 'inline';
   		    document.getElementById('strFullNameError').innerHTML = '(Required field)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strFullName').focus();
			}
			Invalide = false;
   		}
   		   		
if(strEmail.value == '') 
   		{ 
   		    strEmail.style.border = '2px solid #f90404';
   		    document.getElementById('strEmailError').style.display = 'inline';
   		    document.getElementById('strEmailError').innerHTML = '(Required field)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail').focus();
			}
   		    Invalide = false;
   		}

   		if(!isValidEmail(strEmail.value)) 
   		{ 
   		    strEmail.style.border = '2px solid #f90404';   		    
   		    document.getElementById('strEmailError').style.display = 'inline';
   		    document.getElementById('strEmailError').innerHTML = '(Invalid email)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail').focus();
			}
   		    Invalide = false;   		
   		}   		   		   		
   		
   		if(strEmail2.value == '') 
   		{ 
   		    strEmail2.style.border = '2px solid #f90404';
   		    document.getElementById('strEmail2Error').style.display = 'inline';
   		    document.getElementById('strEmail2Error').innerHTML = '(Required field)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail2').focus();
			}
   		    Invalide = false;
   		}
		
   		if(strEmail.value != strEmail2.value) 
   		{ 
			strEmail2.style.border = '2px solid #f90404';
   		    document.getElementById('strEmail2Error').style.display = 'inline';
   		    document.getElementById('strEmail2Error').innerHTML = '(Not the same)'; 
			
			if(Focus=="")
			{
				Focus = "true"
				document.getElementById('strEmail2').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("@"));
    }