
function validate_form_1004(){
    reset_input("form_1004");
    with (document.form_1004){
            
        if(inputObj=document.getElementById("name")){
            if(name.value==""){
                inputError("Please enter your first name or last name.", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("company")){
            if(company.value==""){
                inputError("Which company do you work for?", inputObj);
                inputObj.focus();
                return false;
            }
        }
        if(inputObj=document.getElementById("telephone")){
            if(telephone.value==""){
                inputError("Please enter an office or mobile contact number", inputObj);
                inputObj.focus();
                return false;
            }
                else
                if(!is_phone_number("telephone")){
                    inputError("Please enter an office or mobile contact number", inputObj);
                inputObj.focus();
                return false;
                }
        }
        if(inputObj=document.getElementById("email")){
            if(email.value==""){
                inputError("Please enter your email in the correct form (youremail@domain.com)", inputObj);
                inputObj.focus();
                return false;
            }
                else
                if(!isValidEmail("email")){
                    inputError("Please enter your email in the correct form (youremail@domain.com)", inputObj);
                inputObj.focus();
                return false;
                }
        } 
        }
        var formObj=document.getElementById("form_1004");
            formObj.target="upload1004";
            return true;
    }