| |
81 |
81 |
var fields = ["f_href", "f_title", "f_target" ]; |
| |
82 |
82 |
var param = new Object(); |
| |
83 |
83 |
for (var i in fields) { |
| |
84 |
84 |
var id = fields[i]; |
| |
85 |
85 |
var el = document.getElementById(id); |
| |
86 |
86 |
param[id] = el.value; |
| |
87 |
87 |
} |
| |
88 |
88 |
if (param.f_target == "_other") |
| |
89 |
89 |
param.f_target = document.getElementById("f_other_target").value; |
| |
90 |
90 |
__dlg_close(param); |
| |
91 |
91 |
return false; |
| |
92 |
92 |
}; |
| |
93 |
93 |
|
| |
94 |
94 |
function onCancel() { |
| |
95 |
95 |
__dlg_close(null); |
| |
96 |
96 |
return false; |
| |
97 |
97 |
}; |
| |
98 |
98 |
|
| |
99 |
99 |
function openFileSelector() { |
| |
100 |
100 |
|
| |
101 |
|
// open the file selctor popup |
| |
|
101 |
// open the file selector popup |
| |
102 |
102 |
// make sure it is at least this size |
| |
103 |
103 |
var w=640; |
| |
104 |
104 |
var h=480; |
| |
105 |
105 |
|
| |
106 |
106 |
if (window.screen) { |
| |
107 |
107 |
w = parseInt(window.screen.availWidth * 0.50); |
| |
108 |
108 |
h = parseInt(window.screen.availHeight * 0.50); |
| |
109 |
109 |
} |
| |
110 |
110 |
|
| |
111 |
111 |
(w < 640) ? w = 640 : w = w; |
| |
112 |
112 |
(h < 480) ? h = 480 : h = h; |
| |
113 |
113 |
var dimensons = "width="+w+",height="+h; |
| |
114 |
114 |
if (!document.all) { |
| |
115 |
115 |
selector_window = window.open("@file_selector_link;noquote@", |
| |
116 |
116 |
"file_selector" , |
| |
117 |
117 |
"toolbar=no,menubar=no,personalbar=no,scrollbars=yes,resizable=yes," + |
| |
118 |
118 |
dimensons); |
| |
119 |
119 |
} else { |
| |
120 |
120 |
selector_window = window.open("@file_selector_link;noquote@", |
| |
121 |
121 |
"file_selector", |