﻿function hidePreview() {
    self.parent.tb_remove();
}
function uploadStart(sender, args) {
    showUpdateProgressDialog();
}
function uploadComplete(sender, args) {
    hideUpdateProgressDialog();
    hidePreview();
}
function showUpdateProgressDialog() {
    $('#updateInProgressDiv').css({ "display": "block" });
    $("#updateBtn").trigger('click');
}
function hideUpdateProgressDialog() {
    $('#updateInProgressDiv').css({ "display": "none" });
}
//Script to get FCK editor value in update panel
function FCKUpdateLinkedField(id) {
    try {
        if (typeof (FCKeditorAPI) == "object") {
            FCKeditorAPI.GetInstance(id).UpdateLinkedField();
        }
    }
    catch (err) {
    }
}
