﻿//following function obtained from http://jsperf.com/querystring-with-javascript on June 20 2011
// splits the query string up and returns it in an array
function getQueryString(q) {
    return (function(a) {
        if (a == "") return {};
        var b = {};
        for (var i = 0; i < a.length; ++i) {
            var p = a[i].split('=');
            if (p.length != 2) continue;
            b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
        }
        return b;
    })(q.split("&"));
};

//central web service error function
function OnServiceError(result) {
    //alert("Error: " + result.get_message());
    //Need to log errors
}

