﻿// the web service methods succeeds.
// @result - The data returned from the Web service method call. 
// @userContext - The user defined context was passed when the Web service method was invoked.
// @methodName - The Web service method that was invoked. 
function succeededCallback(result, userContext, methodName) {
    alert("RESULT: " + result);
    alert("CONTEXT: " + userContext);
    alert("METHOD: " + methodName);
    //    switch(methodName)
    //    {

    //    }   
}

// Callback function invoked when the call to the Web service methods fails.
function failedCallback(error, userContext, methodName) {
    if (error != null) {
        alert(error._message);
        // error._message;
        
        //alert("An error has been occured.  Please contact our Administrator for resolutions. Thank you.\n\n" + error);        
        // Save error report to the database.       
    }
}

// Make sure that the script is loaded.
if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

