Dialog, form checking and Spry

Dialog, form checking and Spry

I am trying to implement spry into my form check and for the most part it works.  I am not getting any errors but no matter what are the result is function is not continuing.  So basically if agencycheck() returns true it should go on to other stuff but that does not happen.  I am sure that spry is getting back correct results since updateTips() works in both instances.  the function is executed on form submit button checkAgency(shortname), and shortname is the name of the form field.

  1. function checkAgency(o) {    
        Spry.Utils.loadURL("GET","agencychecker.cfm?agency="+encodeURIComponent(o.val()), false, agencycheck);    
    }

    function agencycheck(request) {
        var result = request.xhRequest.responseText;    
        if(result == 0) {
                    updateTips("Agency short name already exists!");
                    return false;
                } else {
                updateTips("good");
                    return true;
                }
            }