function myFileBrowser (field_name, url, type, win) {

    // alert("Field_Name: " + field_name + "\nURL: " + url + "\nType: " + type + "\nWin: " + win); // debug/testing
   
    var cmsURL = '/admin/filebrowser/?pop=2';      // script URL
    tinyMCE.activeEditor.windowManager.open({
        //this ain't PHP
        file : cmsURL + "&type=" + type, // PHP session ID is now included if there is one at all
        width : 820,  // Your dimensions may differ - toy around with them!
        height : 600,
        resizable : "yes",
        inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!
        close_previous : "no",
        scrollbars: "yes"
    }, 
    {
        window : win,
        input : field_name
    });
    return false;
  }

function myCustomSetupContent(editor_id, body, doc) {
    if (body.innerHTML == "") {
        body.innerHTML = "<p>&nbsp;</p>";
    }
}

