﻿//--------------------------------------------------------------------------------------------
// Name		        : 	AjaxEventHandlers.js
//
// Description   	: 	Custom event handlers related to Ajax functionality.
//
// Requirements 	: 	None
//
// Author(s)     	: 	Jon Moore
//
// Date          	: 	15.10.2007
//--------------------------------------------------------------------------------------------

if (typeof(Sys) != 'undefined' && typeof(Sys.Application) != 'undefined') Sys.Application.add_load(ApplicationLoadHandler);

function ApplicationLoadHandler(sender, args){
    Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(IS_initializeRequest);
}

function IS_initializeRequest(sender, args)
{
    var prm = Sys.WebForms.PageRequestManager.getInstance();

    if(prm.get_isInAsyncPostBack()){
        args.set_cancel(true);
    }
}

if (typeof(Sys) != 'undefined' && typeof(Sys.Application) != 'undefined') Sys.Application.notifyScriptLoaded();
