function selectURL(url) { document.passform.fileurl.value = url; FileBrowserDialogue.mySubmit(); } var FileBrowserDialogue = { init : function () { // Here goes your code for setting your custom things onLoad. rowHighlight(); }, mySubmit : function () { var URL = document.passform.fileurl.value; var win = tinyMCEPopup.getWindowArg("window"); // insert information now win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL; // for image browsers: update image dimensions if (typeof(win.ImageDialog) != "undefined" && document.URL.indexOf('type=image') != -1) { if (win.ImageDialog.getImageData) win.ImageDialog.getImageData(); if (win.ImageDialog.showPreviewImage) win.ImageDialog.showPreviewImage(URL); } // close popup window tinyMCEPopup.close(); } } tinyMCEPopup.onInit.add(FileBrowserDialogue.init, FileBrowserDialogue); rowHighlight = function() { var x = document.getElementsByTagName('tr'); for (var i=0;i