summaryrefslogtreecommitdiffabout
path: root/content/util.js
Side-by-side diff
Diffstat (limited to 'content/util.js') (more/less context) (ignore whitespace changes)
-rw-r--r--content/util.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/util.js b/content/util.js
index 5af0978..c4af09e 100644
--- a/content/util.js
+++ b/content/util.js
@@ -59,3 +59,12 @@ function xp_node(xp,x) {
return rv.singleNodeValue;
}
+/*
+ * pull in elements into documents as a member variables
+ */
+function pull_elements(th,d,els) {
+ for(var e in els) {
+ var en=els[e];
+ th[en] = d.getElementById(en);
+ }
+}