function closeWidget() {
    parent.MyDesktop.desktop.getWindow(window.name).close();
}

function updateFrame(id) {
    parent.MyDesktop.desktop.updateFrame(id);
}

function updateAllFrames() {
    parent.MyDesktop.desktop.updateAllFrames();
}

function updateApp(app) {
    parent.MyDesktop.desktop.updateApp(app);
}

function novisExec(app, url, title, pos, width, height, lang) {
    if (parent.window.frames.length != 0) {
        parent.MyDesktop.desktop.createIWidget(app, url, title, pos, width, height);
    } else {
        var answer = confirm ("Asegurese que en la barra de direcciones de su navegador\n"+
                              "sólo esté escrito http://"+location.host+"/ sin nada detrás.\n"+
                              "Si pulsa Aceptar será redirigido automáticamente.");
        if (answer) {
            window.location = "http://"+location.host;
        }
    }
}

