 var start = url.indexOf('?'); var stop = url.indexOf('#');  if (start != -1) { if (stop != -1) { var query = url.substring(start + 1, stop); } else { var query = url.substring(start + 1); } } else { return {}; }  
var query = (url.indexOf('?') != -1) ? url.substring(url.indexOf('?') + 1) : ''; 
OpenLayers.Util.getArgs = function(url) {    if(url == null) {        url = window.location.href;    }    var start = url.indexOf('?');    var stop = url.indexOf('#');        if (start != -1) {        if (stop != -1) {            var query = url.substring(start + 1, stop);        } else {            var query = url.substring(start + 1);        }    } else {        return {};    }            var args = new Object();    pairs = query.split(/[&;]/);    for(var i = 0; i < pairs.length; ++i) {        keyValue = pairs[i].split(/=/);        if(keyValue.length == 2) {            args[decodeURIComponent(keyValue[0])] =                decodeURIComponent(keyValue[1]) || '';        }    }    return args;}
2032	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2032/3eeaf81e641dec78fdb84cb5bf79d449c54f729e/Util.js/buggy/lib/OpenLayers/Util.js