Files
EDOKA_Batch/edkb12/edkb12 V14/EDKB12WS/VSdoc/HTML/edkb12ws_contextids.js
2021-04-20 07:59:36 +02:00

15 lines
465 B
JavaScript

var hmContextIds = new Array();
function hmGetContextId(query) {
var urlParams;
var match,
pl = /\+/g,
search = /([^&=]+)=?([^&]*)/g,
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
params = {};
while (match = search.exec(query))
params[decode(match[1])] = decode(match[2]);
if (params["contextid"]) return decodeURIComponent(hmContextIds[params["contextid"]]);
else return "";
}