function CLWFCX(formObj,scmd,npos)
{
    var bret=false;
    Ext.Ajax.request({
         url: "../JieKou/Handler.ashx?key=clwfcx&msg="+scmd.toLowerCase(),
         success: function(response, options) {   //请求成功调用的函数
            var text=response.responseText;
            Ext.MessageBox.alert("提示",text);
            if(text=="false")
            {
                bret=false;
                formObj.MyEvents(0,"['msg']='车辆存在违法未处理!'");  //给指定的控件赋值
                Ext.MessageBox.alert("提示", "车辆存在违法未处理!");
            }
            else
            {
                bret=true;
                formObj.MyEvents(0,"['msg']=''");
            }
         },
         failure: function(response, option) {     //请求失败调用的函数
            Ext.MessageBox.alert("提示", "请求失败!");
         }
    });
    return bret;
}
这个方法可能是因为ajax异步,判断条件确实是执行了,但得不到正确的返回值,请问应该怎么写,可以的到正确的返回值!