var getURLParameters = function(url) {
    var result = {};
    var searchIndex = url.indexOf("?");
    
    if (searchIndex == -1 ) return result;
        var sPageURL = url.substring(searchIndex +1);
        var sURLVariables = sPageURL.split('&');
        for (var i = 0; i < sURLVariables.length; i++) {       
            var sParameterName = sURLVariables[i].split('=');      
            result[sParameterName[0]] = sParameterName[1];
        }
        return result;
};

Usage:

var url = 'http://zerosixthree.se/?id=1&user=sebastian&password=wutangclan;
var params = getURLParameters(url);
console.log(params);

Which then results in the following: