diff options
author | Andrew Dolgov <[email protected]> | 2005-08-22 06:28:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-22 06:28:27 +0100 |
commit | 7726fa023cc4430a71840012d99ec32e1c1126de (patch) | |
tree | 2368178d6039d94a49bac566036a3ad33e6b58db | |
parent | 83fe4d6db52b8eca0d072f35c44b9683b10c05ed (diff) |
forgot about functions.js
-rw-r--r-- | functions.js | 30 |
1 files changed, 30 insertions, 0 deletions
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"; + } + +} + + |