﻿var sURL = unescape(window.location.href);

function CloseEditWindow() {
    window.location.href = sURL;
}

function CallBackFunction(radWindow, returnValue) {
    var userId = document.getElementById(radWindow._offsetElementID);
    if (returnValue) {
        if (returnValue._argument != null)
            userId.value = returnValue._argument[1];
    }
}

function OnClientClose(radWindow, returnValue) {
    var userId = document.getElementById(radWindow._offsetElementID);
    if (returnValue) {
        if (returnValue._argument != null)
            userId.value = returnValue._argument[1];
    }
}
function openWindow(winName) {
    oWnd = window.radopen(null, winName);
    oWnd.setUrl(oWnd.get_navigateUrl());
}

function CloseWindow() {
    window.location.href = sURL;
}

function PopupFormSubmit(radWindow, returnValue) {
    var userId = document.getElementById(radWindow._offsetElementID);
    if (returnValue) {
        if (returnValue._argument != null)
            userId.value = returnValue._argument[1];
    }
    document.forms.item(0).submit();
}
