
function validate_form_1057(){
    reset_input("form_1057");
    with (document.form_1057){
            
        if(inputObj=document.getElementById("afe_name")){
            if(afe_name.value==""){
                inputError("Please enter your name", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("afe_type")){
            if(!selectBoxIsSelected("afe_type")){
                inputError("Please choose between a Company or an Individual", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("afe_company_name")){
            if(afe_company_name.value==""){
                inputError("Please enter the name of your company", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("afe_company_industry")){
            if(afe_company_industry.value==""){
                inputError("Please enter what kind of industry your company is in", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("company_website")){
            if(company_website.value==""){
                inputError("Please enter the URL of your company website, or \'NONE\'", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(document.getElementsByName("afe_company_flash_enabled").length>0){
            if(!radioIsChecked("afe_company_flash_enabled")){
                groupError("Is your website flash enabled?", "afe_company_flash_enabled_group");
                return false;
            }
        }
        if(inputObj=document.getElementById("afe_company_location")){
            if(!selectBoxIsSelected("afe_company_location")){
                inputError("Please choose the location of your company", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("afe_company_position")){
            if(afe_company_position.value==""){
                inputError("Please enter the name of your position", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("afe_company_contact_number")){
            if(afe_company_contact_number.value==""){
                inputError("Please enter a valid phone number", inputObj);
                inputObj.focus();
                return false;
            }
                else
                if(!is_phone_number("afe_company_contact_number")){
                    inputError("Please enter a valid phone number", inputObj);
                inputObj.focus();
                return false;
                }
        }
        if(inputObj=document.getElementById("afe_individual_location")){
            if(!selectBoxIsSelected("afe_individual_location")){
                inputError("Please choose your location", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("afe_individual_contact_number")){
            if(afe_individual_contact_number.value==""){
                inputError("Please enter a valid phone number", inputObj);
                inputObj.focus();
                return false;
            }
                else
                if(!is_phone_number("afe_individual_contact_number")){
                    inputError("Please enter a valid phone number", inputObj);
                inputObj.focus();
                return false;
                }
        }
        if(inputObj=document.getElementById("afe_email")){
            if(afe_email.value==""){
                inputError("Please enter a valid email address", inputObj);
                inputObj.focus();
                return false;
            }
                else
                if(!isValidEmail("afe_email")){
                    inputError("Please enter a valid email address", inputObj);
                inputObj.focus();
                return false;
                }
        }
        if(inputObj=document.getElementById("afe_project_desc")){
            if(afe_project_desc.value==""){
                inputError("Please tell us about your project", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(document.getElementsByName("afe_inhouse").length>0){
            if(!radioIsChecked("afe_inhouse")){
                groupError("Please choose if you have inhouse flash developers", "afe_inhouse_group");
                return false;
            }
        } 
        }
        var formObj=document.getElementById("form_1057");
            formObj.target="upload1057";
            return true;
    }