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); function selectURL(url){ // window.opener.SetUrl( url, width, height, alt); window.opener.SetUrl( url ) ; window.close() ; } function selectURL(url) { opener.document.getElementById("").value = url; // Set img source of element id, if img id exists (format is elementid + "img") if ( typeof(opener.document.getElementById("img")) != "undefined" && opener.document.getElementById("img") != null && opener.document.getElementById("img").src.length != 0 ) { opener.document.getElementById("img").src = url; } self.close(); } rowHighlight = function() { var x = document.getElementsByTagName('tr'); for (var i=0;i