//

$(document).ready(function() {




$("#actionIconFAQs").click(function() {

/*$("#dialogFAQs").load("NewsView.aspx");

$("#dialogFAQs").dialog(
 {
    height: 400,
    width: 400,
    modal: true}
 );*/

window.showModalDialog('FAQsView.aspx', null, 'dialogWidth:600px; dialogHeight: 650px; center: yes; help:no; status:no;');
     
 });
 
 //alert('click');
 

}
);



$.pageMethod = function(url, data, onSuccess, onError) {
    if(url.indexOf("/") == -1) {
        url = location.pathname + "/" + url;
    }
    if (jQuery.isFunction(data)) {
        onError = onSuccess;
        onSuccess = data;
        data = "{}";
    }
    else {
        data = JSON.stringify(data);
    }
    $.ajax( {
        type: "POST",
        url: url,
        data: data,
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: onSuccess,
        error: onError,
        dataFilter: function(data) {
            var filteredData;
            try
            {
                if (typeof(JSON) !== 'undefined' && typeof(JSON.parse) === 'function')
                    filteredData = JSON.parse(data);
                else
                    filteredData = eval('(' + data + ')');
            }
            catch (err)
            {
                filteredData = data;
            }
            if (filteredData.hasOwnProperty('d'))
                return filteredData.d;
            else
                return filteredData;
        }
    } );  
};

function BlockUI() {
    $("#Processing").dialog("open");
}

function UnBlockUI() {
    if ($("#Processing").dialog("isOpen"))
            $("#Processing").dialog("close");
}
