rem: dbforms2_fBrowserFieldId = fieldId; 
add: dbforms2_fBrowserField = field; 
context: dbforms2_common.openFileBrowser = function(fieldId) {    var fBrowserUrl = bx_webroot + 'webinc/fck/editor/filemanager/browser/default/browser.html?Type=files&Connector=connectors/php/connector.php';    var currentFile = dbforms2.mainform.getFieldByID(fieldId).getValue();    if (currentFile == '' && dbforms2_fBrowserLastLocation) {        currentFile = dbforms2_fBrowserLastLocation;    }    var filesDir = '/files';    sParentFolderPath = currentFile.substring(filesDir.length, currentFile.lastIndexOf('/', currentFile.length - 2) + 1);    if(sParentFolderPath != '' && (sParentFolderPath.indexOf('/') != -1))        fBrowserUrl += '&RootPath=' + escape(sParentFolderPath);        if(typeof fBrowserWindow != 'undefined' && !fBrowserWindow.closed) {        fBrowserWindow.location.href = fBrowserUrl;    } else {        fBrowserWindow = window.open(fBrowserUrl, 'fBrowser', 'width=800,height=600,location=no,menubar=no');    }    fBrowserWindow.focus();    dbforms2_fBrowserFieldId = fieldId;        SetUrl = function(url) {        if(dbforms2_fBrowserFieldId != '') {            dbforms2.mainform.getFieldByID(dbforms2_fBrowserFieldId).setValue(url);            dbforms2_fBrowserLastLocation = url;        }        dbforms2_fBrowserFieldId = '';    }    }
meta: 6621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6621/8f821fe3fb25694472797434f06c9da984eb2bff/common.js/buggy/webinc/plugins/dbforms2/common.js