﻿/// <reference name="MicrosoftAjax.js"/>
var oWnd = null
var isInitialized = false;

function pageLoad() {
    isPostback = false;
}

function OnClientActivate(sender) {
    //get a reference to the RadWindow object
    oWnd = sender;
    //set the value of the Url textbox to the current RadWindow's NavigateUrl
    if (!isInitialized) {
        oWnd.hide();
        isInitialized = true;
    }
}
function PopEditeur(args) {
    oWnd.show();
    oWnd.setUrl(args._commands.EditionDockCommand.editeurUrl);
}

function CloseOnReload() {
    window.document.location.href = window.document.location.href;
}

function RefreshParentPage() {
    window.location.reload();
}

function RedirectParentPage(newUrl) {
    window.document.location.href = newUrl;
}   