﻿
function ClearCacheObject(obj) {
    $.ajax({
    url: "/App_Handler/ClearSessionObject.aspx",
    cache: false,
    data: ({ objectkey: obj})
    });
}

function ToggleVisible(id) {
    var obj = document.getElementById(id);
    if (obj.style.display == "none")
        obj.style.display = "block";
    else
        obj.style.display = "none";
}

function doPostBackAsync(eventName, eventArgs) {
    var prm = Sys.WebForms.PageRequestManager.getInstance();

    if (!Array.contains(prm._asyncPostBackControlIDs, eventName)) {
        prm._asyncPostBackControlIDs.push(eventName);
    }

    if (!Array.contains(prm._asyncPostBackControlClientIDs, eventName)) {
        prm._asyncPostBackControlClientIDs.push(eventName);
    }

    __doPostBack(eventName, eventArgs);
}

function selectTab(sender, id) {

    $(sender).parent().parent().find('a').removeClass('selected');
    $(sender).addClass('selected');
    $('#filter-search .facet').hide();
    $('#' + id).show();
}








