summaryrefslogtreecommitdiffstats
path: root/install/static/pageparams.js
blob: 62307def84e2ba429e15ec4fa0ff08ba2ef5f846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function getPageParams(){
    var qsParm = new Array();
    var query = window.location.search.substring(1);
    var parms = query.split("&");
    for (var i=0; i<parms.length; i++) {
	var pos = parms[i].indexOf('=');
	if (pos > 0) {
	    var key = parms[i].substring(0,pos);
	    var val = parms[i].substring(pos+1);
	    qsParm[key] = val;
	}
    }
    return qsParm;
}