forgot about functions.js

This commit is contained in:
Andrew Dolgov 2005-08-22 06:28:27 +01:00
parent 83fe4d6db5
commit 7726fa023c
1 changed files with 30 additions and 0 deletions

30
functions.js Normal file
View File

@ -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";
}
}