﻿// JScript File
// Callback function invoked on successful 
// completion of the page method.
function defaultSuccess(result, userContext, methodName) 
{
    alert('Success - Method: ' + methodName + '\nResult: ' + result + '\nContext: ' + userContext);
}

function voidFn(obj, userContext, methodName)
{
    //do nothing
}

// Callback function invoked on failure 
// of the page method.
function defaultFail(error, userContext, methodName) 
{
    if(error != null) 
    {
        alert('Error - Method: ' + methodName + '\nMessage: ' + error.get_message() + '\nContext: ' + userContext);
    }
}

if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();

