}
}
+/* query string */
+
+function parseQueryString() {
+ var queryArray, queryDict
+ var key, value, s, idx;
+ queryDict.length = 0;
+
+ queryDict = new Array();
+ queryArray = location.search.substr(1).split('&');
+ for (var i in queryArray) {
+ if (!queryArray[i]) continue ;
+ s = queryArray[i];
+ idx = s.indexOf("=");
+ if (idx == -1) {
+ key = s;
+ value = "";
+ }
+ else {
+ key = s.substr(0, idx);
+ value = unescape(s.substr(idx + 1));
+ }
+
+ if (typeof queryDict[key] == 'undefined')
+ queryDict.length++;
+
+ queryDict[key] = value;
+ }
+ return queryDict;
+}
+
+function generateQueryString(queryDict) {
+ var s = "":
+ for (var key in queryDict) {
+ if (s.length == 0)
+ s = "?";
+ else
+ s = s + "&";
+ s = s + key + "=" + escape(queryDict[key]);
+ }
+ return s;
+}
+
function getQueryParaArray(s) {
if (s.charAt(0) == "?") s = s.substr(1, s.length - 1);
return s.split("&");
return null;
}
+/* opener callback */
+
function triggerOpenerCallback() {
/* this code has some issue if the folder has no proper trailing slash! */
if (window.opener && !window.opener.closed) {