Jsp submission loading image

// form submission
    Var_loging;
    $("#company_enter_form").submit(function(e){
    _loging=layer.load(1,{
    Shade:[0.1,'#fff']//0.1 transparency white background
    });
    $.ajax({
    Type: 'post',
    Async:false,
    Data:$("#company_enter_form").serialize(),
    dataType: "json",
    Success:function(result){
    If(result.status===1){
    Layer.msg('submit successfully')
    Layer.close(_loging);
    }else{
    Layer.msg(result.msg)
    Layer.close(_loging);
    }
    },
    Error:function(){
    Layer.close(_loging);
    }
    })
    });