From 7726fa023cc4430a71840012d99ec32e1c1126de Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Aug 2005 06:28:27 +0100 Subject: [PATCH] forgot about functions.js --- functions.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 functions.js diff --git a/functions.js b/functions.js new file mode 100644 index 000000000..25a19908b --- /dev/null +++ b/functions.js @@ -0,0 +1,30 @@ +function param_escape(arg) { + if (typeof encodeURIComponent != 'undefined') + return encodeURIComponent(arg); + else + return escape(arg); +} + +function param_unescape(arg) { + if (typeof decodeURIComponent != 'undefined') + return decodeURIComponent(arg); + else + return unescape(arg); +} + + +function notify(msg) { + + var n = document.getElementById("notify"); + + n.innerHTML = msg; + + if (msg.length == 0) { + n.style.display = "none"; + } else { + n.style.display = "block"; + } + +} + +