function openWindow(url, handle, format) {

        // open the window
        remote = window.open('',handle,format);

        // set its location
        remote.location.href = url;

        // see if the new window has knows who its parent window is,
        // if it doesnt give it a reference to the current window
//        if (remote.opener == null) remote.opener = window;

        // give the parent window a name
//        remote.opener.name = "opener";
}

function openPaletteWindow(url, handle, format) {

        // open the window
        remote = window.open('',handle,format);

        // set its location
        remote.location.href = url;

        // see if the new window has knows who its parent window is,
        // if it doesnt give it a reference to the current window
        if (remote.opener == null) remote.opener = window;

        // give the parent window a name
        //remote.opener.name = "opener";

}