//javascript and ajax code for populating combo boxes etc


function makeRequest(sUrl, oParams) {

//ajax function that accesses php page named sUrl, taking the paramaters as Get strings
          for (sName in oParams) {
            if (sUrl.indexOf("?") > -1) {
              sUrl += "&";
            } else {
              sUrl += "?";
            }
            sUrl += encodeURIComponent(sName) + "=" + encodeURIComponent(oParams[sName]);

          }
          var oScript = document.createElement("script");
          oScript.src = sUrl;
          document.body.appendChild(oScript);

          //document.getElementById('permittedusers').innerHTML =sUrl;

//end makeRequest function
}
